This is a simple mathematical processor that was made as an example of using OOP in tasks like string parsing. This math processor can calculate expressions like "2+3*4".
Uses only STL and does not have any dependencies.
$ ./calc "((sqr( 2+2.212 ) - 29.78/19 + 50 * (8.25^2) + sqrt(5*5))-1000.29 )/24"
101
It is simplified implementation of google calc
- "-" - Subtraction
- "+" - Adding
- "*" - Multiplication
- "/" - Division
- "^" - Exponentiation
- "sqr()" - Square
- "sqrt()" - Square root
$ ./compile.sh