SSJ
3.3.1
Stochastic Simulation in Java
|
This class provides methods to solve non-linear equations. More...
Static Public Member Functions | |
static double | brentDekker (double a, double b, MathFunction f, double tol) |
Computes a root \(x\) of the function in f using the Brent-Dekker method. More... | |
static double | bisection (double a, double b, MathFunction f, double tol) |
Computes a root \(x\) of the function in f using the bisection method. More... | |
This class provides methods to solve non-linear equations.
|
static |
Computes a root \(x\) of the function in f
using the bisection 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 interval |
b | right endpoint of initial interval |
f | the function which is evaluated |
tol | accuracy goal |
|
static |
Computes a root \(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 interval |
b | right endpoint of initial interval |
f | the function which is evaluated |
tol | accuracy goal |