| BairstowRootFinderFindUniqueRoots(Polynomial, Int32, Double) Method |
Finds the unique roots of a polynomial using repeated application of Bairstow's method.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static ICollection<DoubleComplex> FindUniqueRoots(
Polynomial p,
int maxIterations = 100,
double tolerance = 1E-12
)
Public Shared Function FindUniqueRoots (
p As Polynomial,
Optional maxIterations As Integer = 100,
Optional tolerance As Double = 1E-12
) As ICollection(Of DoubleComplex)
public:
static ICollection<DoubleComplex>^ FindUniqueRoots(
Polynomial^ p,
int maxIterations = 100,
double tolerance = 1E-12
)
static member FindUniqueRoots :
p : Polynomial *
?maxIterations : int *
?tolerance : float
(* Defaults:
let _maxIterations = defaultArg maxIterations 100
let _tolerance = defaultArg tolerance 1E-12
*)
-> ICollection<DoubleComplex>
Parameters
- p Polynomial
- The polynomial to solve.
- maxIterations Int32 (Optional)
- Maximum number of iterations to perform during an application
of Bairstow's method.
- tolerance Double (Optional)
- Iteration in Bairstow's method terminates
if falls below this value.
Return Value
ICollectionDoubleComplexThe set of unique roots.
See Also