Skip to content

PolynomialQuotientRemainder

PolynomialQuotientRemainder[poly_, div_, var_] returns the quotient and remainder of poly divided by div treating var as the polynomial variable.

Attributes[PolynomialQuotientRemainder] := {Protected}

Simple examples

In[1]:= PolynomialQuotientRemainder[2 + x^2 + x^3, 2 + 2*x, x]
Out[1]= {(x^2)/(2), 2}
In[2]:= PolynomialQuotientRemainder[x^3, x + y, x]
Out[2]= {x^2 + (x*y)*-1 + y^2, y^3*-1}
In[3]:= PolynomialQuotientRemainder[1 + x^3, 1 + a*x^2, x]
Out[3]= {(x)/(a), 1 + (x)/(a)*-1}