6.5.10 Euclidean quotient and Euclidean remainder of two integers: iquorem
The iquorem command finds both the quotient and remainder of
two integers (see Section 6.5.8).
-
iquorem takes two arguments:
a and b, integers.
- iquorem(a,b) returns the list [q,r], where q
is the quotient and r the remainder of a divided by b.
Examples.
-
Input:
iquorem(148,5)
Output:
- Input:
iquorem(25+12*i,5+7*i)
Output: