AngouriMath
CoefficientOf(AngouriMath.Entity)
Method (no overloads)
Summary
The whole number this term is a multiple of, or null where it is not a
whole multiple of anything — which is the answer that stops the whole sum.
whole multiple of anything — which is the answer that stops the whole sum.
Remarks
Null rather than one, deliberately. A term with no whole coefficient does not contribute
a 1 to the gcd, it makes the question unanswerable: the content of2x + a/3 is
not 1, it is a thing this does not compute, and returning 1 would say the sum has no
content when what is true is that this cannot tell.
a 1 to the gcd, it makes the question unanswerable: the content of
not 1, it is a thing this does not compute, and returning 1 would say the sum has no
content when what is true is that this cannot tell.
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online