Back to functions

Expression.variables


variables

Get a list of the variables contained within the expression.

Usage: nerdamer(expression).variables()


Parameters

none This function takes no arguments.

Returns

String[]

EXAMPLES:
var e = nerdamer('x^2+y-a*e');
var variables = e.variables();
console.log(variables);
e = nerdamer('a*b*c^r+1');
variables = e.variables();
console.log(variables);
OUTPUT:
Back to functions