Android pocket calculator that uses a mathematical expressions evaluator based on the Visitor Pattern.
Project contains a simple android interface to use the expressions evaluator.
ExpressionParser is the main class of the evaluator. It receives the mathematical expression as a string generated from the main activity, given to the eval() method, and returns a floating point result.
The following operations are implemented:
- sum (+)
- subtraction (-)
- multiplication (*)
- division (/)
- square root (sqrt)
- power (^)
- sinus (sin)
- cosinus (cos)
- logarithm (log)