Evaluates the given function on the x point.
function
x
double evaluateFunction(String function, double x) { const evaluator = ExpressionParser(); return evaluator.evaluateOn(function, x); }