AngouriMath
Mod(System.Numerics.Complex,System.Numerics.Complex)
Method (no overloads)
Summary
The remainder of one number by another, or NaN where either of them is not real.
Remarks
There is no one remainder of a complex number by another: which multiple of the
divisor to subtract is a choice, and the two usual ones -- rounding the quotient to
the nearest Gaussian integer, or truncating it -- disagree. The interpreter declines
the question and leavesa % b unevaluated; the compiled path has no way to
return an unevaluated node, so it answers NaN, which says the same thing.
For real arguments this is the runtime's own % , and so takes the sign of the
dividend, which is what Evaled does as well.
divisor to subtract is a choice, and the two usual ones -- rounding the quotient to
the nearest Gaussian integer, or truncating it -- disagree. The interpreter declines
the question and leaves
return an unevaluated node, so it answers NaN, which says the same thing.
dividend, which is what Evaled does as well.
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online