Finds a root within the interval.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public double Find(
	OneVariableFunction f,
	double lower,
	double upper
)
Visual Basic (Declaration)
Public Function Find ( _
	f As OneVariableFunction, _
	lower As Double, _
	upper As Double _
) As Double
Visual C++
public:
virtual double Find(
	OneVariableFunction^ f, 
	double lower, 
	double upper
) sealed

Parameters

f
Type: CenterSpace.NMath.Core..::.OneVariableFunction
The function.
lower
Type: System..::.Double
The lower limit.
upper
Type: System..::.Double
The upper limit.

Return Value

A root of f within the interval between lower and upper.

Implements

IOneVariableDRootFinder..::.Find(OneVariableFunction, Double, Double)

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.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.NMathException Thrown if a root is not found.

See Also