Simple math expressions interpreter. Parsing is made using Shunting yard algorithm.
Some examples of mi usage:
python3 mi.py "2^2"
python3 mi.py "-11 +-25 --13.2 * (-4- 3.14)"
python3 mi.py "11 +25 -13.2 * (4- 3.14)"
python3 mi.py "4^(1/2)"
python3 mi.py "2^(2+3)"
To run tests simply execute this command while in the root diectory of the project:
python3 -B -m pytest -v tests/test_op_func.py
- Add error and invalid expression input handling
- Add pi/e constants recognition
- Add different functions like sqrt(x), sin(x), cos(x), log(x) etc.
- Add precision level change for floats