PolynomialRemainder
PolynomialRemainder[poly_, div_, var_]
returns the remainder of poly
divided by div
treating var
as the polynomial variable.
Attributes[PolynomialRemainder] := {Protected}
Simple examples
In[1]:= PolynomialRemainder[2 + x^2 + x^3, 2 + 2*x, x] Out[1]= 2
In[2]:= PolynomialRemainder[x^3, x + y, x] Out[2]= y^3*-1
In[3]:= PolynomialRemainder[1 + x^3, 1 + a*x^2, x] Out[3]= 1 + (x)/(a)*-1