Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/red-rapious/ocaml-cas

A basic Computer Algebra System (CAS) made in OCaml
https://github.com/red-rapious/ocaml-cas

cas computer-algebra-system ocaml

Last synced: 14 days ago
JSON representation

A basic Computer Algebra System (CAS) made in OCaml

Awesome Lists containing this project

README

        

# OCaml-CAS
A basic Computer Algebra System (CAS) made in OCaml

## Features
- 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

## Installation
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
```

## Files
- `bin/expression.ml`: basic expression type and checker
- `bin/calculus.ml`: derivation and simplification
- `bin/main.ml`: tests
- `bin/output.ml`: function to print expressions

## License
This work is licensed under the [CC-BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) license.