DoubleEvaluator doubleEvaluator = new DoubleEvaluator();
return doubleEvaluator.parse(expression);
}
public double evalStep(String expression) {
Parser p = new Parser();
fNode = p.parse(expression);
if (fNode instanceof FunctionNode) {
fNode = optimizeFunction((FunctionNode) fNode);
}
return evaluateNode(fNode);
}