Evaluate a mathematical expression string.
Usage
evaluate(expr)
expr: str
The expression to evaluate.
float
The result of the evaluation.