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

Online Help

All Products    Maple    MapleSim


GaussInt

  

GIrem

  

Gaussian integer remainder

  

GIquo

  

Gaussian integer quotient

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GIrem(m, n)  GIrem(m, n, 'q')

GIquo(m, n)  GIquo(m,n, 'r')

Parameters

m, n

-

Gaussian integers

q, r

-

(optional) names

Description

• 

GIrem computes the Gaussian integer remainder of m divided by n.  If the third argument is present, it is assigned the quotient. Likewise, GIquo computes the integer quotient of m divided by n; and if the third argument is present, assigns it the remainder. In special cases when there is more than one possible value for the quotient, the one with the smallest norm is chosen.

Examples

withGaussInt:

GIquo6+12I,8+4I,r

−I

(1)

r

2+4I

(2)

GIrem6+12I,8+4I,q

2+4I

(3)

q

−I

(4)

GIquo19+33I,6+14I,r

1+2I

(5)

r

3+7I

(6)

GIrem19+33I,6+14I,q

3+7I

(7)

q

1+2I

(8)

See Also

iquo

irem