Back to functions

parens


parentheses

Wraps an expression in parentheses. Useful for expressing factors. Calling evaluate removes parentheses.

Usage: nerdamer("parens(x)")


Parameters

expression x Returns the appropriate value if possible otherwise it returns the function with the simplified expression

Returns

Expression

EXAMPLES:
var x = nerdamer('parens(9)*parens(7)');
console.log(x.toString());
console.log(x.evaluate().toString());
OUTPUT:
Back to functions