Gets the AlgorithmStatus following an execution of the algorithm.

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public ReadOnly Property IterationResultCode As IterationResultCode
C#
public IterationResultCode IterationResultCode { get; }
C++
public:
IterationResultCode IterationResultCode {
	IterationResultCode get ();
}

Value

One of the AlgorithmStatus values.

Remarks

This property indicates the outcome of approximating the zero of the function. The root finding process can fail for a number of reasons. The possible values are as follows:
Result codeDescription
NoResultThe algorithm has not been executed.
NormalThe algorithm ended normally.
IterationLimitExceededThe maximum number of iterations was exceeded.
RoundOffErrorRound-off prevented the algorithm from achieving a result within the desired tolerance.
BadFunctionA badly behaved function prevented the algorithm from achieving a result within the desired tolerance.
DivergentThe algorithm diverges.

Even if the result is not Converged, an approximate value of the root is still available. However, it cannot be guaranteed that this value will even be close to the actual result.

When finding roots, it is recommended to set the ThrowExceptionOnFailure property to false and inspect the value of this property after the algorithm has run.