Quotient and remainder

### 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

quorem([1,2,4],[1,1,2])

[▯ 1 ▯, ▯ 1,2 ▯] |  |  |  |  |  |  |  |  |  |

quorem(x^3-1,x^2-1,x)

| ⎡ ⎣ | x,x−1 | ⎤ ⎦