Back to functions

Expression.eq


equals

Checks for equality of two expressions.

Usage: nerdamer(x).eq(y)


Parameters

String x Expression 1
String y Expression 2

Returns

Boolean

EXAMPLES:
var x = nerdamer('sqrt(2)').eq('2^(1/2)');
console.log(x.toString());
var x = nerdamer(5).eq(2);
console.log(x.toString());
var x = nerdamer('a+1').eq('a+1');
console.log(x.toString());
var x = nerdamer('Infinity').eq('Infinity');
console.log(x.toString());
OUTPUT:
Back to functions