AngouriMath
FewestDivisions
Property
Summary
Prefers the expression with fewest divisions, then fewest nodes.
Remarks
A negative power is a division written differently, so it counts too — otherwise the
model would merely move divisions rather than remove them. For the same reason the
exponent is read by value:y ^ (1 * (-1)) is a division however it is spelled,
and a test that missed it would rate the unevaluated writing cheapest.
model would merely move divisions rather than remove them. For the same reason the
exponent is read by value:
and a test that missed it would rate the unevaluated writing cheapest.
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online