11.2.4 Quotient and remainder
The quorem or
divide command finds the quotient
and remainder of the Euclidean division of two polynomials.
-
quorem takes two mandatory arguments and one optional
argument:
-
P and Q, two polynomials.
- Optionally x, the variable (by default
x), if P and Q are given as expressions.
- quorem(P,Q ⟨,x⟩)
returns a list consisting of the Euclidean quotient and the
Euclidean remainder of P divided by Q.
Examples