AngouriMath
Mod(AngouriMath.Entity,AngouriMath.Entity)
Method (no overloads)
Summary
The remainder after dividing one expression by another, that is, the node
dividend % divisor .
Remarks
The remainder takes the sign of the divisor -- the floored convention,
a - b * floor(a / b) , under which (-7) mod 3 is 2 and 7 mod (-3) is -2. This is what a mathematician means by mod: it is the convention under which
the residues modulo n are the numbers from 0 to n - 1, and it is what SymPy,
Mathematica and Maxima all answer. C# truncates instead and so its% on two
Int32s gives -1 there, but that is an operation on machine integers and
not this one.
Written mod when parsed from a string. % is left to mean percent.
the residues modulo n are the numbers from 0 to n - 1, and it is what SymPy,
Mathematica and Maxima all answer. C# truncates instead and so its
Int32s gives -1 there, but that is an operation on machine integers and
not this one.
Parameter "dividend"
The expression whose remainder is taken
Parameter "divisor"
The expression divided by; the result is undefined where it is zero
Returns
The node of the remainder
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online