Click or drag to resize

ZeroCrossingBracketingExpand Method

Detect a range containing at least one root.

Namespace: Altaxo.Calc.RootFinding
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public 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

Boolean
True if the bracketing operation succeeded, false otherwise.
Remarks
This iterative methods stops when two values with opposite signs are found.
See Also