Click or drag to resize

BairstowRootFinderFindUniqueRoots(IListBairstowRootFinderSolveResult, Double) Method

Extracts the unique roots from the list of all roots resulting from Applying Bairstow's method to find all roots of a polynomial. Equality is determined by the "relative error" between the two values, x and y, being compared according to the formula: E = ||x - y||, if max(||x||, ||y||) is less than 1 ||x - y|| / max(||x||, ||y||), otherwise

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static ICollection<DoubleComplex> FindUniqueRoots(
	IList<BairstowRootFinderSolveResult> results,
	double relativeTolerance = 1E-07
)

Parameters

results  IListBairstowRootFinderSolveResult
The results from
C#
FindAllRoots
relativeTolerance  Double  (Optional)
Relative error used to determine equality of two complex numbers as described in the summary.

Return Value

ICollectionDoubleComplex
Set of unique roots.
See Also