Roots
Method with 2 overloads
Roots(AngouriMath.Functions.IntegerPolynomial,PeterO.Numbers.EContext)
Summary
The roots ofsquareFree , which has degree at least one and no repeated
root, at the precision ofcontext ;null where they
are not settled.
Roots(PeterO.Numbers.EDecimal[],PeterO.Numbers.EContext,System.Int32)
Summary
The roots of the polynomial with realcoefficients , lowest power first,
at the precision ofcontext , each approximation at least
10^-separationDigits of the size of the roots from the others;
null where they are not settled or not that far apart.
Remarks
Solved forw = z / 10^e , with10^e the size of the roots, so that the
iteration below meets roots of about unit size whatever theirs is. Its starting circle,
the tolerance it settles to and the separation it holds the roots to are in absolute
terms, and a polynomial whose roots were all within10^-12 of zero was started
10^12 times as far out as they are and did not settle; with roots within
10^-30 , the products the step divides by passed below the context's exponent
range and every root came out NaN. The system solved for the parts of x in
(1 + i) + 2x - 3x^2 + x|3 - x| = 0 with x written as10^12 x kept one root
of its two. The scaling is by a power of ten, which is exact.
Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6091 pages online