Click or drag to resize

IOneVariableDRootFinderFind Method (OneVariableFunction, Double, Double)

Finds a root within the interval.

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

Parameters

f
Type: CenterSpace.NMath.CoreOneVariableFunction
The function.
lower
Type: SystemDouble
The lower limit.
upper
Type: SystemDouble
The upper limit.

Return Value

Type: Double
A root of f within the interval between lower and upper.
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