Implements a recursive algorithm to evaluate any algebraic expression.
-
Operators ○ Addition: + ○ Subtraction: - ○ Multiplication: * ○ Division: / ○ Grouping: ()
-
Operands ○ Numerals: 32.436, 18.7, 42
-
The following would be valid expressions and their corresponding evaluations: ○ 3 + 12 * 3 / 12 => 6 ○ (3 + 3) * 42 / (6 + 12) => 14
-
The following would not be valid expressions: ○ 4 (12E) => Invalid Expression ○ 4 (41) => Invalid Expression ○ 42+43**271 => Invalid Expression
- Python
To get a local copy up and running follow these simple example steps.
Python
- Clone Github repo: https://github.com/Bluette1/expression-solver
python -m unittest discover --verbose -s ./test -p "*_test.py"
👤 Marylene Sawyer
- Github: @Bluette1
- Twitter: @MaryleneSawyer
- Linkedin: Marylene Sawyer
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed