Click or drag to resize

BrentFindRootCheckInitialBracketingPoints 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: 24.2.419.0 (24.2.419.0)
Syntax
public bool CheckInitialBracketingPoints(
	double a,
	double fa,
	double c,
	double fc
)

Parameters

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

Return Value

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