GaussInt/GImod - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : GaussInt/GImod

GaussInt

  

GImod

  

Gaussian integer modular arithmetic

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GImod(a, m)

Parameters

a

-

Gaussian integer or polynomial with Gaussian integer coefficients, or a set or list of these

m

-

Gaussian integer

Description

• 

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.

Examples

withGaussInt:

GImod17+32I,5+4I

2I

(1)

GImod12+13Iz22722Iz+17+14I,3+4I

3Iz2+1+Iz+1+I

(2)

GImod17+32I12345,5+5I

−3+2I

(3)

GImodinv17+32I,5+5I

−14I

(4)

GImod17+32I,inv17+32I,3+7I

−1+2I,23I

(5)

See Also

GaussInt,GIquo

GaussInt,GIrem

mod

syntax