BrentFindRootExpand Method |
Find a solution of the equation f(x)=0.
Namespace: Altaxo.Calc.RootFindingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double FindRootExpand(
Func<double, double> f,
double guessLowerBound,
double guessUpperBound,
double accuracy = 1E-08,
int maxIterations = 100,
double expandFactor = 1,6,
int maxExpandIteratons = 100
)
Parameters
- f FuncDouble, Double
- The function to find roots from.
- guessLowerBound Double
- Guess for the low value of the range where the root is supposed to be. Will be expanded if needed.
- guessUpperBound Double
- Guess for the high value of the range where the root is supposed to be. Will be expanded if needed.
- accuracy Double (Optional)
- Desired accuracy. The root will be refined until the accuracy or the maximum number of iterations is reached. Default 1e-8. Must be greater than 0.
- maxIterations Int32 (Optional)
- Maximum number of iterations. Default 100.
- expandFactor Double (Optional)
- Factor at which to expand the bounds, if needed. Default 1.6.
- maxExpandIteratons Int32 (Optional)
- Maximum number of expand iterations. Default 100.
Return Value
DoubleReturns the root with the specified accuracy.
Exceptions See Also