public class BracketRoot
extends java.lang.Object
Constructor and Description |
---|
BracketRoot() |
Modifier and Type | Method and Description |
---|---|
static boolean |
bracketRoot(double[] bracket,
MonadicFunction function,
int maxIter,
double expansionFactor)
Find interval bracketing a root.
|
public static boolean bracketRoot(double[] bracket, MonadicFunction function, int maxIter, double expansionFactor)
bracket
- Array containing initial estimate for
of bracketing interval.
bracket[0] is left hand estimate.
bracket[1] is right hand estimate.function
- Function whose root is to be bracketed.maxIter
- Maximum number of iterations to try
expanding bracket.expansionFactor
- Factor by which to expand bracket interval
on each iteration.