SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.util.RootFinder Class Reference

This class provides numerical 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.
static double bisection (double a, double b, MathFunction f, double tol)
 Computes a root \(x\) of the function in f using the bisection method.

Detailed Description

This class provides numerical methods to solve non-linear equations.

Definition at line 34 of file RootFinder.java.

Member Function Documentation

◆ bisection()

double umontreal.ssj.util.RootFinder.bisection ( double a,
double b,
MathFunction f,
double tol )
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\).

Parameters
aleft endpoint of initial interval
bright endpoint of initial interval
fthe function which is evaluated
tolaccuracy goal
Returns
the root \(x\)

Definition at line 183 of file RootFinder.java.

◆ brentDekker()

double umontreal.ssj.util.RootFinder.brentDekker ( double a,
double b,
MathFunction f,
double tol )
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\).

Parameters
aleft endpoint of initial interval
bright endpoint of initial interval
fthe function which is evaluated
tolaccuracy goal
Returns
the root \(x\)

Definition at line 52 of file RootFinder.java.


The documentation for this class was generated from the following file: