Click or drag to resize

IOneVariableRootFinderFind Method (OneVariableFunction, Interval)

Finds a root of the given function within the given interval.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
double Find(
	OneVariableFunction f,
	Interval interval
)

Parameters

f
Type: CenterSpace.NMath.CoreOneVariableFunction
The function.
interval
Type: CenterSpace.NMath.CoreInterval
The interval.

Return Value

Type: Double
A root of f within interval.
Exceptions
ExceptionCondition
NMathException Thrown if a root is not found.
Remarks
Iteration stops when either the estimated error is less than the tolerance, or the maximum number of iterations is reached. Setting the error tolerance to less than zero ensures that the maximum number of iterations is always reached.
See Also