 | NewtonRaphsonRootFinderFind(OneVariableFunction, OneVariableFunction, Double, Double) Method |
Finds a root within the interval.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic double Find(
OneVariableFunction f,
OneVariableFunction df,
double lower,
double upper
)
Public Function Find (
f As OneVariableFunction,
df As OneVariableFunction,
lower As Double,
upper As Double
) As Double
public:
virtual double Find(
OneVariableFunction^ f,
OneVariableFunction^ df,
double lower,
double upper
) sealed
abstract Find :
f : OneVariableFunction *
df : OneVariableFunction *
lower : float *
upper : float -> float
override Find :
f : OneVariableFunction *
df : OneVariableFunction *
lower : float *
upper : float -> float
Parameters
- f OneVariableFunction
- The function.
- df OneVariableFunction
- The derivative of f.
- lower Double
- The lower limit.
- upper Double
- The upper limit.
Return Value
Double
A root of
f within the interval between
lower
and
upper.
Implements
IOneVariableDRootFinderFind(OneVariableFunction, OneVariableFunction, Double, Double)
Exceptions
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.
See Also