| ImprovedNewtonRaphsonMethodDFindRoot Method (FuncDouble, Double, Double, Double) |
Finds the root of the given function.
Namespace: DigitalRune.Mathematics.AnalysisAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax protected override double FindRoot(
Func<double, double> function,
double x0,
double x1
)
Protected Overrides Function FindRoot (
function As Func(Of Double, Double),
x0 As Double,
x1 As Double
) As Double
protected:
virtual double FindRoot(
Func<double, double>^ function,
double x0,
double x1
) override
abstract FindRoot :
function : Func<float, float> *
x0 : float *
x1 : float -> float
override FindRoot :
function : Func<float, float> *
x0 : float *
x1 : float -> float
Parameters
- function
- Type: SystemFuncDouble, Double
The function f. - x0
- Type: SystemDouble
An x value such that the root lies between x0 and x1.
- x1
- Type: SystemDouble
An x value such that the root lies between x0 and x1.
Return Value
Type:
Double
The x value such that
f(x) = 0; or
NaN if no root is found.
See Also