public final class RootFinder extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
brentDekker(double a,
double b,
DFunction f,
double tol)
Computes a root
x of the function in f using the
Brent-Dekker method. |
public static double brentDekker(double a,
double b,
DFunction f,
double tol)
x of the function in f using the
Brent-Dekker method. The interval [a, b] must contain the root
x. The calculations are done with an approximate relative
precision tol. Returns x such that f(x) = 0.a - left endpoint of initial intervalb - right endpoint of initial intervalf - the function which is evaluatedtol - accuracy goalx such that f(x) = 0Copyright © 2022. All rights reserved.