Back to functions

nerdamer.expressions


expressions

Each time an expression is parsed nerdamer stores the result. Use this method to get back stored expressions.

Usage: nerdamer.expressions(x, y)


Parameters

bool x Pass in true to get expression as numbered object with 1 as starting index
String y Pass in the string "LaTeX" to get the expression to LaTeX, otherwise expressions come back as strings

Returns

nerdamer

EXAMPLES:
var x = nerdamer('x^2+1')
var y = nerdamer('sin(x)*cos(x)');
var expressions = nerdamer.expressions();
console.log(expressions);
expressions = nerdamer.expressions(true, 'LaTeX');
console.log(expressions);
OUTPUT:
Back to functions