Back to functions

Expression.evaluate


evaluate

Forces evaluation of the expression.

Usage: nerdamer(expression).evaluate()


Parameters

none This function takes no arguments

Returns

Expression

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