supported operations

Ignoring a "must" above results in undefined behavior, which may include the calculator hanging or producing incorrect results.

source / credits / build instructions

In addition to the main source code, the calculator demo uses code from the following projects:

The easiest way to fetch all required dependencies is to install opam and run:

opam install ocaml ocamlfind coq=8.16.0 js_of_ocaml js_of_ocaml-ppx zarith zarith_stubs_js

Then in the directory where you have downloaded the main source code, run:

./extract.sh

Enter an expression below. Results are either rounded up or down to the given number of digits after the decimal place.