| FZeroFind(OneVariableFunction, Interval) 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,
Interval interval
)
Public Function Find (
f As OneVariableFunction,
interval As Interval
) As Double
public:
virtual double Find(
OneVariableFunction^ f,
Interval^ interval
) sealed
abstract Find :
f : OneVariableFunction *
interval : Interval -> float
override Find :
f : OneVariableFunction *
interval : Interval -> float
Parameters
- f OneVariableFunction
- The function.
- interval Interval
- The interval.
Return Value
Double
A root of
f within
interval.
Implements
IOneVariableRootFinderFind(OneVariableFunction, Interval)Exceptions Exception | Condition |
---|
NMathException |
The function evaluated at opposite ends of the interval 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( interval.Min )) != sign( f( interval.Max ))
See Also