AngouriMath

Navigation

← Back to list of members

Normalized​(AngouriMath.​Entity)

 Method (no overloads)

Summary

Brings the two powers of one base in a product together, so that an integrand
which is a power in disguise is recognised as one.

Remarks

This has to happen on every recursive call rather than once on the way in. The
shape is produced by the integrator itself -- distributing a product over a sum
turns sin(x)^4 * (5 - 6*sin(x)^2) into a term sin(x)^4 * (-6) * sin(x)^2 -- so normalising only the caller's input would miss every case the integrator
generates for itself. https://github.com/asc-community/AngouriMath/issues/781
Deliberately not followed by InnerSimplified: that rewrites x^(-2) back into 1/x^2, and SolveAsPolynomialTerm(AngouriMath.Entity,AngouriMath.Entity.Variable,System.Boolean) rewrites a 1/x^n it is handed into Pow(x, -n), so the pair recurse
into each other until the stack runs out. The gathering folds the exponents it
builds and leaves the rest of the tree alone.

























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