Click or drag to resize
Accord.NET (logo)

BrentSearchFind Method (FuncDouble, Double, Double, Double, Double, Double, Int32)

Finds a value of a function in the interval [a;b]

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static double Find(
	Func<double, double> function,
	double value,
	double lowerBound,
	double upperBound,
	double tol = 1E-06,
	int maxIterations = 500
)
Request Example View Source

Parameters

function
Type: SystemFuncDouble, Double
The function to have its root computed.
value
Type: SystemDouble
The value to be looked for in the function.
lowerBound
Type: SystemDouble
Start of search region.
upperBound
Type: SystemDouble
End of search region.
tol (Optional)
Type: SystemDouble
The tolerance for determining the solution.
maxIterations (Optional)
Type: SystemInt32
The maximum number of iterations before terminating.

Return Value

Type: Double
The location of the value in the given interval.
See Also