Project for 42 Authorship Program. First project of "Write your own interpreter" cycle.
Mathematical expressions evaluator. Allows you to evaluate expression within range of supported operators.
Python >= 3
Simply clone the repo:
git clone https://github.com/IvanKozlov95/rpn_converter
Run main.py file and send expression string you want to evaluate:
./main.py "1 + 3 * (2 - 1)^2"
Or:
python main.py "1 + 3 * (2 - 1)^2"
Following operations are supported
- Addition/Subtraction
- Multiplication
- Division/Modulo
- Power
This project is licensed under the Apache license 2.0.