GaussInt
GImod
Gaussian integer modular arithmetic
Calling Sequence
Parameters
Description
Examples
GImod(a, m)
a
-
Gaussian integer or polynomial with Gaussian integer coefficients, or a set or list of these
m
Gaussian integer
GImod(a, m), where a is a Gaussian integer, computes the Gaussian integer remainder of a divided by m.
GImod(a, m), where a is a polynomial with Gaussian integer coefficients, reduces the coefficients mod m.
To compute GImod(a^n, m), where a is a Gaussian integer and n is a positive integer, without first computing a^n, use the inert powering operator, &^: GImod(a &^ n, m).
To compute GImod(a^(-1), m), where a is a Gaussian integer, use the form GImod(inv(a), m).
GImod(a, m) = GImod~(a, m) if a is a set or list, where ~ is the elementwise operator.
See Also
GaussInt,GIquo
GaussInt,GIrem
mod
syntax
Download Help Document