AngouriMath

Navigation

Modf


← Back to list of classes

Description

Summary

A node of modulus, that is, the floored remainder after division,
a - b * floor(a / b), which takes the sign of the divisor:
(-7) mod 3 is 2 and 7 mod (-3) is -2, the convention of
SymPy, Mathematica and Maxima and the one under which the residues modulo n are 0 to n - 1. Not C#'s %, which truncates; this comment said
the opposite of what the evaluation and the documentation do.

Members

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4405 pages online