GaussInt
GIrem
Gaussian integer remainder
GIquo
Gaussian integer quotient
Calling Sequence
Parameters
Description
Examples
GIrem(m, n) GIrem(m, n, 'q')
GIquo(m, n) GIquo(m,n, 'r')
m, n
-
Gaussian integers
q, r
(optional) names
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.
with⁡GaussInt:
GIquo⁡6+12⁢I,−8+4⁢I,r
−I
r
2+4⁢I
GIrem⁡6+12⁢I,−8+4⁢I,q
q
GIquo⁡−19+33⁢I,6+14⁢I,r
1+2⁢I
3+7⁢I
GIrem⁡−19+33⁢I,6+14⁢I,q
See Also
iquo
irem
Download Help Document