Back to functions

Expression.divide


divide

Divides one expression by another.

Usage: nerdamer(x).divide(y)


Parameters

String x Expression 1
String y Expression 2

EXAMPLES:
var x = nerdamer('x^2+x').divide('x').expand();
console.log(x.toString());
x = nerdamer(0.1).multiply(0.2);
console.log(x.toString());
var a = nerdamer('(x+a)(y+b)');
var b = nerdamer('2(y+b)');
console.log(a.divide(b).toString());
OUTPUT:
Back to functions