AngouriMath

Navigation

← Back to list of members

PerfectSquareRules​(AngouriMath.​Entity)

 Method (no overloads)

Summary

A three-term sum that is a perfect square with a radical in it.

Remarks

Its own pass, run before FactorizeRules(AngouriMath.Entity) rather than as an arm of
it. Replace walks bottom-up, so the common-factor rule reaches the inner
4 + 4*sqrt(x) of 4 + 4*sqrt(x) + x first and rewrites it to
4 * (1 + sqrt(x)) -- by the time the outer sum is looked at, the three
terms this needs are no longer there. Ordering the arms within the switch does
not help, because the two rules are looking at different nodes.
https://github.com/asc-community/AngouriMath/issues/176

























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