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.RootFindingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic 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
DoubleThe estimated root, or
NaN if the method fails.
See Also