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