| 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static ICollection<DoubleComplex> FindUniqueRoots(
IList<BairstowRootFinderSolveResult> results,
double relativeTolerance = 1E-07
)
Public Shared Function FindUniqueRoots (
results As IList(Of BairstowRootFinderSolveResult),
Optional relativeTolerance As Double = 1E-07
) As ICollection(Of DoubleComplex)
public:
static ICollection<DoubleComplex>^ FindUniqueRoots(
IList<BairstowRootFinderSolveResult^>^ results,
double relativeTolerance = 1E-07
)
static member FindUniqueRoots :
results : IList<BairstowRootFinderSolveResult> *
?relativeTolerance : float
(* Defaults:
let _relativeTolerance = defaultArg relativeTolerance 1E-07
*)
-> ICollection<DoubleComplex>
Parameters
- results IListBairstowRootFinderSolveResult
- The results from
- relativeTolerance Double (Optional)
- Relative error used to determine equality of two complex numbers
as described in the summary.
Return Value
ICollectionDoubleComplexSet of unique roots.
See Also