PolynomialReduce¶
Reduces a polynomial modulo a list of polynomials in a single variable.
PolynomialReduce[poly, {p1, p2, ...}, x] returns {{a1, a2, ...}, b} with
a1 p1 + a2 p2 + ... + b == poly and b the minimal remainder.
A divisor with rational coefficients divides just as exactly. The factor that clears the denominator stays in front of the quotient rather than being distributed into it:
A single divisor may be given without the surrounding list:
When no divisor can reduce the polynomial, it is returned as the remainder: