| BisectionMethodFFindRoot Method (FuncSingle, Single, Single, Single) |
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 float FindRoot(
Func<float, float> function,
float x0,
float x1
)
Protected Overrides Function FindRoot (
function As Func(Of Single, Single),
x0 As Single,
x1 As Single
) As Single
protected:
virtual float FindRoot(
Func<float, float>^ function,
float x0,
float x1
) override
abstract FindRoot :
function : Func<float32, float32> *
x0 : float32 *
x1 : float32 -> float32
override FindRoot :
function : Func<float32, float32> *
x0 : float32 *
x1 : float32 -> float32
Parameters
- function
- Type: SystemFuncSingle, Single
The function f. - x0
- Type: SystemSingle
An x value such that the root lies between x0 and x1.
- x1
- Type: SystemSingle
An x value such that the root lies between x0 and x1.
Return Value
Type:
Single
The x value such that
f(x) = 0; or
NaN if no root is found.
See Also