Gaussian integer remainder - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Group Theory : Numbers : Integer Functions : Gaussian Integers : GaussInt/GIrem

GaussInt[GIrem] - Gaussian integer remainder

GaussInt[GIquo] - Gaussian integer quotient

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 are more than one possible values 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


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam