A basic Computer Algebra System (CAS) made in OCaml
- Various expressions
- Basic function: exponential, natural logarithm, sinus, cosinus, tangent, arctan, ...
- Expression validity checker
- Print expressions (soon in LaTeX format)
- Simplification function
- Derivative function supporting every expression implemented in the CAS
Enable opam
commands in command line with:
eval $(opam config env)
(you can also add it in the PATH permanently)
Once in the OCaml_CAS
folder, see if the program compiles with:
dune build
Run it with:
dune exec ./bin/main.exe
bin/expression.ml
: basic expression type and checkerbin/calculus.ml
: derivation and simplificationbin/main.ml
: testsbin/output.ml
: function to print expressions
This work is licensed under the CC-BY-NC-SA 4.0 license.