An NDoc Documented Class Library

Bracket.BracketOut Method 

Bracket a root for the target function by creating and continuously expanding an interval around the initial point until the interval is known to contain at least one root. An interval is determined to contain at least one root when the function evaluation at the inteval endpoints are oppisite signs.

public double[] BracketOut(
   double lower,
   double initial,
   double upper
);

Parameters

lower
the lowest possible lower bound for the bracketting interval. The lower bound for the returned interval will never be smaller than lower
initial
the start point used to create the bracketting interval.
upper
the largest possible upper bound for the bracketting interval. The upper bound for the returned interval will never be larger than upper

Return Value

a two element array containing the lower and upper bounds of the bracketting interval

Exceptions

Exception Type Condition
ConvergenceException if a root could not be bracketed.

See Also

Bracket Class | numerics4net.root Namespace