Back to functions
div
divide
Divides to polynomials and returns whole and remainder. CAUTION: For direct use only. Do not use through nerdamer since the return value
will be an expression and the array has be accessed through the symbol property.
Usage: nerdamer("divide(x)")
Parameters
|
expression
x
|
Returns the appropriate value if possible otherwise it returns the function with the simplified expression |
Returns
Expression
var x = nerdamer('div(x^2+2*x+1, x+1)');
console.log(x.toString())
var y = nerdamer('div(b*z+a*z+b^2+a*b, a+b)');
console.log(y.toString());