Click or drag to resize

BairstowRootFinderFindUniqueRoots(DoubleVector, Int32, Double) Method

Finds the unique roots of a polynomial P(x) = a[0] + a[1]*x + a[2]*x^2 + ... + a[n]*x^n using repeated application of Bairstow's method.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static ICollection<DoubleComplex> FindUniqueRoots(
	DoubleVector a,
	int maxIterations = 100,
	double tolerance = 1E-12
)

Parameters

a  DoubleVector
The coefficients of the polynomial to solve. The constant term is at index 0 and the leading coefficient is at index
C#
a.Length - 1
.
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
C#
StepLength
falls below this value.

Return Value

ICollectionDoubleComplex
The set of unique roots.
See Also