Back to functions

rect


rectangular function

The rectangular function as defined here

Usage: nerdamer("rect(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('rect(5/2)').evaluate();
console.log(x.toString());
var x = nerdamer('rect(-2)').evaluate();
console.log(x.toString());
var x = nerdamer('rect(0)').evaluate();
console.log(x.toString());
OUTPUT:
Back to functions