Parse and evaluate mathematical expression as a string. It supports the four basic math operations, functions, parentheses, and variables.
This is a tweaked version of a parser written by Blake O'Hare. You can find the original version here.
You can now safely evaluate mathematical expressions including built-in functions such as cos
, sin
, exp
, etc.
This is just a start. Please feel free to fork and pull requests!