remainder(x, y)This calls Python's built-in math.remainder function, which computes the IEEE 754-style remainder of x with respect to y. In particular, this is $x - qy$, where q is the integer closed to $\frac{x}{y}$, breaking ties by rounding $\frac{1}{2}$ to the nearest even integer.
|
|
If one of the arguments is a Macaulay2 object, then it is first converted to a Python object before computing the remainder.
|
|
The source of this document is in Python/doc/floating-point.m2:82:0.