Previous: Builtin Operations for Polynomials Up: Polynomial and rational function manipulation

Working with Polynomials with the modulus Set

Whenever the global variable modulus is set to an integer (usually a prime but need not be) instead of nil, then polynomial and coefficient arithmetic are performed in the field (ring) of integers modulo the modulus. If you program set the variable modulus it is a good idea to for lambda or prog bind it so that it reverts back to its old value when you return from your function.

Integer arithmetic modulo the current modulus are performed by .TS center,box; c s c | c l | l .

farrell@mcs.kent.edu