Click or drag to resize

FZeroFind(OneVariableFunction, Double, Double) Method

Finds one root of f within the given interval.

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

Parameters

f  OneVariableFunction
The function.
ax  Double
The lower bound.
bx  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 The function evaluated at ax and bx must have different signs. FZero only finds bracketed single roots.
Remarks
Requires that the function evaluated at the two bounds be of opposite signs.
C#
sign( f( lower )) != sign( f( upper ))
See Also