| FZeroFind(OneVariableFunction, Double, Double) Method |
Finds one root of f within the given interval.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public double Find(
OneVariableFunction f,
double ax,
double bx
)
Public Function Find (
f As OneVariableFunction,
ax As Double,
bx As Double
) As Double
public:
virtual double Find(
OneVariableFunction^ f,
double ax,
double bx
) sealed
abstract Find :
f : OneVariableFunction *
ax : float *
bx : float -> float
override Find :
f : OneVariableFunction *
ax : float *
bx : float -> float
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 Exception | Condition |
---|
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.
sign( f( lower )) != sign( f( upper ))
See Also