| BairstowRootFinderFindAllRoots(Double, Int32, Double) Method |
Finds all the roots of polynomial by repeated application of Biarstow's method.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static IList<BairstowRootFinderSolveResult> FindAllRoots(
double[] a,
int maxIterations = 100,
double tolerance = 1E-12
)
Public Shared Function FindAllRoots (
a As Double(),
Optional maxIterations As Integer = 100,
Optional tolerance As Double = 1E-12
) As IList(Of BairstowRootFinderSolveResult)
public:
static IList<BairstowRootFinderSolveResult^>^ FindAllRoots(
array<double>^ a,
int maxIterations = 100,
double tolerance = 1E-12
)
static member FindAllRoots :
a : float[] *
?maxIterations : int *
?tolerance : float
(* Defaults:
let _maxIterations = defaultArg maxIterations 100
let _tolerance = defaultArg tolerance 1E-12
*)
-> IList<BairstowRootFinderSolveResult>
Parameters
- a Double
-
The coefficients of the polynomial to solve.
The constant term is at index 0 and the leading coefficient
is at index .
- maxIterations Int32 (Optional)
- Iteration terminates when the iteration count
exceeds this value.
- tolerance Double (Optional)
- Iteration terminates if
fall below this value.
Return Value
IListBairstowRootFinderSolveResultList of results for each application of Bairstow's method.
See Also