ZeroCrossingBracketingExpandReduce Method |
Attempts to bracket a zero crossing by expanding the interval and then, if necessary, reducing it.
Namespace: Altaxo.Calc.RootFindingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static bool ExpandReduce(
Func<double, double> f,
ref double lowerBound,
ref double upperBound,
double expansionFactor = 1,6,
int expansionMaxIterations = 50,
int reduceSubdivisions = 100
)
Parameters
- f FuncDouble, Double
- The function to inspect.
- lowerBound Double
- On input, the lower bound of the interval. On success, the bracketing lower bound.
- upperBound Double
- On input, the upper bound of the interval. On success, the bracketing upper bound.
- expansionFactor Double (Optional)
- The factor used while expanding the interval.
- expansionMaxIterations Int32 (Optional)
- The maximum number of expansion iterations.
- reduceSubdivisions Int32 (Optional)
- The number of subdivisions to inspect during reduction.
Return Value
Boolean if a bracketing interval was found; otherwise,
.
See Also