QuickRootFindingByBrentsAlgorithm(FuncDouble, Double, 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 GSL_ERROR? ByBrentsAlgorithm(
Func<double, double> f,
double x0,
double x1,
double epsabs,
double epsrel,
out double root
)
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.
- root Double
- On success, receives the estimated root.
Return Value
GSL_ERROR on success; otherwise an error describing why the method failed.
See Also