Click or drag to resize

QuickRootFindingByBrentsAlgorithm(FuncDouble, Double, Double, Double, Double, Double) Method

Finds a root of f in the interval [x0, x1] using Brent's algorithm.

Namespace: Altaxo.Calc.RootFinding
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static double ByBrentsAlgorithm(
	Func<double, double> f,
	double x0,
	double x1,
	double epsabs,
	double epsrel
)

Parameters

f  FuncDouble, Double
Function for which a root should be found.
x0  Double
Lower bound of the bracketing interval.
x1  Double
Upper bound of the bracketing interval.
epsabs  Double
Absolute convergence tolerance.
epsrel  Double
Relative convergence tolerance.

Return Value

Double
The estimated root, or NaN if the method fails.
See Also