The quotient and remainder of ordinary integers a and b are respectively integers q and r, where a=b*q+r and 0 ≤ r < b.
The quotient and remainder of Gaussian integers a and b are respectively Gaussian integers q and r where r=a−b*q is as small as possible. It can be proven that r can be found so that |r|2 ≤ |b|2/2.
The iquo command finds the integer quotient of two integers.
intDiv is a synonym for iquo.
Examples.
29 |
3176375 |
3−2 i |
The div operator is the infixed version of iquo.
Example.
Input:
Output:
29 |