Isolates a root within a given interval.

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 2.1.0.0 (2.1.0.0)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public static double FindZero(
	Func<double, double> f,
	Interval bracket
)
Public Shared Function FindZero ( _
	f As Func(Of Double, Double), _
	bracket As Interval _
) As Double
public:
static double FindZero(
	Func<double, double>^ f, 
	Interval bracket
)
static member FindZero : 
        f : Func<float, float> * 
        bracket : Interval -> float 

Parameters

f
Func<(Of <(<'Double, Double>)>)>
The function whoose zero is sought.
bracket
Interval
An interval bracketing the root.

Return Value

An ordinate within the bracket at which the function has a zero.

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionThe function does not change sign across the given interval.

See Also