@hackage calculator0.3.1.1

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.

$ cabal install calculator

To install with plotting support.

$ cabal 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.
  • Installation

  • Dependencies (0)

  • Dependents (1)

    @hackage/acme-everything
  • Package Flags

      plot-gtk-ui
       (off by default)

      Use plot-gtk-ui to provide plotting commands