Previous Up Next

6.28.3  Euclidean remainder: rem Rem

The rem command finds the remainder of the Euclidean division of two polynomials.


Examples.

Rem is the inert form of rem; namely, it evaluates to rem for later evaluation. It is used when Xcas is in Maple mode (see Section 3.5.2) to compute the euclidean remainder of the division of two polynomials with coefficients in ℤ/pℤ using Maple-like syntax.


Examples.

If Xcas is not in Maple mode, polynomial division in ℤ/pℤ[X] is entered, for example, by:

rem((x^3+3*x)% 5,(2x^2+6x+5)%5)

Previous Up Next