ZeroCrossingBracketingExpand Method |
Detect a range containing at least one root.
Namespace: Altaxo.Calc.RootFindingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntaxpublic static bool Expand(
Func<double, double> f,
ref double lowerBound,
ref double upperBound,
double factor = 1,6,
int maxIterations = 50
)
Parameters
- f FuncDouble, Double
- The function to detect roots from.
- lowerBound Double
- Lower value of the range.
- upperBound Double
- Upper value of the range
- factor Double (Optional)
- The growing factor of research. Usually 1.6.
- maxIterations Int32 (Optional)
- Maximum number of iterations. Usually 50.
Return Value
BooleanTrue if the bracketing operation succeeded, false otherwise.
RemarksThis iterative methods stops when two values with opposite signs are found.
See Also