Back to functions

divide


divide

Divides 2 polynomials.

Usage: nerdamer("divide(x, y)")


Parameters

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

Returns

Expression

EXAMPLES:
var x = nerdamer('divide(x^2+2*x+1, x+1)');
console.log(x.toString())
var y = nerdamer('divide(-b*z-a*z+b^3+a*b^2+a*b+a^2, b+a)');
console.log(y.toString());
OUTPUT:
Back to functions