| BairstowRootFinderFindAllRoots(DoubleVector, 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(
DoubleVector a,
int maxIterations = 100,
double tolerance = 1E-12
)
Public Shared Function FindAllRoots (
a As DoubleVector,
Optional maxIterations As Integer = 100,
Optional tolerance As Double = 1E-12
) As IList(Of BairstowRootFinderSolveResult)
public:
static IList<BairstowRootFinderSolveResult^>^ FindAllRoots(
DoubleVector^ a,
int maxIterations = 100,
double tolerance = 1E-12
)
static member FindAllRoots :
a : DoubleVector *
?maxIterations : int *
?tolerance : float
(* Defaults:
let _maxIterations = defaultArg maxIterations 100
let _tolerance = defaultArg tolerance 1E-12
*)
-> IList<BairstowRootFinderSolveResult>
Parameters
- a DoubleVector
-
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