Click or drag to resize

RiddersRootFinderFind(OneVariableFunction, Double, Double) Method

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

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

Parameters

f  OneVariableFunction
The function.
lower  Double
The lower bound.
upper  Double
The upper bound.

Return Value

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

Implements

IOneVariableRootFinderFind(OneVariableFunction, Double, Double)
Exceptions
ExceptionCondition
NMathException Thrown if a root is not found.
Remarks
Requires that the function evaluated at the two bounds be of opposite signs.
C#
sign( f( lower )) != sign( f( upper ))
See Also