@hackage calculator0.4.0.0

A calculator repl, with variables, functions & Mathematica like dynamic plots.

Calculator

A calculator repl.

Features

  • Arithmetic
  • Standard mathematical functions
  • Variable bindings
  • Function bindings
    • Single argument functions
    • Multiple argument functions
  • Plotting (Optional)
    • Static plots (no animation)
    • Dynamic plots (for multiple argument functions)

Installation and plotting support

The plotting support is optional as it requires gtk2hs. It is off by default, and can be turned on using a configuration as shown.

To install without plotting support.

$ stack install calculator

To install with plotting support.

$ stack install calculator --flags="plot-gtk-ui"

TODO

Lots and lots of testing.

Implementation

  • Written in haskell
  • Parsing done using parsec
  • Repl built using haskeline
  • Colored output using ANSI color codes

Usage

Use :? to view usage instructions.

Thanks

  • Thanks to husky for color output.