A simple computer algebra system similar to mathematica written in C++.
- Differential calculus
- Store expressions into variables
- Equation solving
- ...
Requirements:
- CMake 3.20
- C++ 23
git clone https://github.com/PhiGei2000/cas.git && cd ./cas
cmake --build ./build
./build/cas
All commands have the form commandName[arg1,arg2,...]
and must terminated by a semicolon. If no variables are needed, the parentheses are optional.
Command | Description | Example |
---|---|---|
set[var, expr] | Assigns the expression expr to the specified variable for later use | set[x,12] or x=12 |
get[var] | Gets the expression stored in the specified variable | get[x] or x |
ans[] | Returns the result of the last stored calculation | |
listVars[] | Lists the currently stored variables and their values | |
exit[] | Shuts down the engine |
Command | Description | Example |
---|---|---|
D[function, variable] | Calculates the derivative of the given function with respect to the given variable | D[2*x,x] = 2 |
Df[function] | Calculates the exterior differential of the given function | Df[2*x*y] = 2*y*dx+2*x*dy |
Feel free to report issues to the issue section
This code is licensed under the GPL-3.0 license