A C++ class capable of interpreting algebraic expressions
art::Interpreter xSquaredFunction("x*x");
int result = xSquaredFunction.getResult(2);
result = 4
art::Interpreter function("a+b*4");
int result = function.getResult({2,6});
result = 42
- The interpreter can parse these operators: +, -, *, /, ^
- The interpreter does respect parenthesis priority
- The interpreter does not support sqrt(), sin(), tan(), cos() etc...