Click or drag to resize

BrentFindRoot.CheckInitialBracketingPoints Method (Double, Double, Double, Double)

Checks whether the given variable and function values will produce a valid initial bracketing interval.

Namespace:  AGI.Foundation.NumericalMethods.Advanced
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public bool CheckInitialBracketingPoints(
	double a,
	double fa,
	double c,
	double fc
)

Parameters

a
Type: System.Double
The first bracketing value of the variable.
fa
Type: System.Double
The corresponding function value at the first bracketing value of the variable.
c
Type: System.Double
The second bracketing value of the variable
fc
Type: System.Double
The corresponding function value at the second bracketing value of the variable.

Return Value

Type: Boolean
true if the values will produce a valid interval; otherwise false. If the value is false, one of the parameters is not-a-number (NaN) or a and c do not bracket a root.
See Also