AngouriMath

Navigation

← Back to list of members

GetMinimumSubtree​(AngouriMath.​Entity,​AngouriMath.​Entity.​Variable)

 Method (no overloads)

Summary

Searches for a subtree containing `ent` and being minimal possible size.
For example, for expr = MathS.Sqr(x) + 2 * (MathS.Sqr(x) + 3) the result
will be MathS.Sqr(x) while for MathS.Sqr(x) + x the minimum subtree is x.
Further, it will be used for solving with variable replacing, for example,
there's no pattern for solving equation like sin(x)^2 + sin(x) + 1 = 0,
but we can first solve t^2 + t + 1 = 0, and then root = sin(x).

























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