irem(m, n) irem(m, n, 'q')
iquo(m, n) iquo(m, n, 'r')
If m and n are both integers the function irem computes the integer remainder of m divided by n. If the third argument is present it will be assigned the quotient. Likewise, iquo computes the integer quotient of m divided by n and if the third argument is present assigns it the remainder.
Specifically, if m and n are integers then irem returns r such that m=n⁢q+r,r<n and 0≤m⁢r.
If either of m or n is symbolic, then irem remains unevaluated.
The irem and iquo commands are thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Use the rem and quo commands for symbolic m or n.
Use the frem command for floating-point m or n.
Error, invalid input: irem received 2.3, which is not valid for its 2nd argument, n
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.