Back to functions

Expression.evaluate


evaluate

Forces evaluation of the expression.


Usage: nerdamer(expression).evaluate()


Parameters

none This function takes no arguments

EXAMPLES:
var x = nerdamer('sin(9+5)');
//the expression is simpliefied but the functions aren't called
console.log(x.toString());
//force function calls with evaluate
console.log(x.evaluate().toString());
OUTPUT:
Back to functions