AngouriMath

Navigation

← Back to list of members

TrySplitOffRationalRoots​(AngouriMath.​Entity,​AngouriMath.​Entity.​Variable,​AngouriMath.​Entity@)

 Method (no overloads)

Summary

expr written as the linear factors of its rational roots
times whatever will not divide, or false where it has no
rational root at all.

Remarks

TryFactor(AngouriMath.Entity,AngouriMath.Entity.Variable,AngouriMath.Entity@) answers a different question and answers it more
strictly: it offers a factorization only when the polynomial splits completely
into whole linear factors, because a partly factored sum is not obviously a
better way of *writing* the same thing. Solving is not a question of how to
write it. (x - 1)(x^2 - 3) is no nicer to read than
x^3 - x^2 - 3x + 3, but it is the difference between answering with
1 and +-sqrt(3) and answering with two nested cube roots of
26 + 18i -- and above degree four, between answering at all and handing
the equation to the numeric solver.
https://github.com/asc-community/AngouriMath/issues/272
Fractional roots are kept here where TryFactor(AngouriMath.Entity,AngouriMath.Entity.Variable,AngouriMath.Entity@) declines them, for
the same reason: a root of 1/2 is as exact an answer as any, whatever
the factored form looks like on the page.

























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