AngouriMath

Navigation

← Back to list of members

InPrintOrder​(AngouriMath.​Entity)

 Method (no overloads)

Summary

The answer with each product's factors in the order a product is written by hand: the
number, then the letters and their powers, then the rest -- a function, an exponential,
a sum -- each kind in the order it had. So 2 y sin(x) and x e^x, not
2 sin(x) y and e^x x: the references write it so (DLMF 5.5.1 is
Γ(z + 1) = z Γ(z)), and ISO 80000-2 lets a function's argument go without
parentheses, sin nπ, so a letter written after a function reads as part of its
argument. https://github.com/asc-community/AngouriMath/issues/1628

Remarks

Only the answer is put in this order. The canonical order the search sorts by puts a
sine before every letter, and the rules that combine factors are binary: they meet
2 cos(x) sin(x) as neighbours only because nothing sorts between them. Sorting
letters first inside the search put x there, so 2 x sin(x) cos(x) no
longer became x sin(2x), l'Hopital's rule saw its quotients grow a step sooner
and lim 1/x^2 - 1/sin(x)^2 at 0 was NaN where it is -1/3. Reordering a
product changes no node count, so nothing that ranks candidates sees it, and a caller
simplifying the answer again has it sorted back before any rule reads it.

























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