SSJ
V. labo.

umontreal.iro.lecuyer.util
Class RootFinder

java.lang.Object
  extended by umontreal.iro.lecuyer.util.RootFinder

public class RootFinder
extends Object

RootFinder

This class provides methods to solve non-linear equations.


Method Summary
static double bisection(double a, double b, MathFunction f, double tol)
          .
static double brentDekker(double a, double b, MathFunction f, double tol)
          .
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

brentDekker

public static double brentDekker(double a,
                                 double b,
                                 MathFunction f,
                                 double tol)
. \begin{tabb}Computes a root $x$\ of the function in \texttt{f} using the
 Brent-...
 ...relative precision
 \texttt{tol}. Returns $x$\ such that $f(x) = 0$.
 \end{tabb}
aleft endpoint of initial interval bright endpoint of initial interval fthe function which is evaluated tolaccuracy goal the root x


bisection

public static double bisection(double a,
                               double b,
                               MathFunction f,
                               double tol)
. \begin{tabb}Computes a root $x$\ of the function in \texttt{f} using the
 \emph{...
 ...relative precision
 \texttt{tol}. Returns $x$\ such that $f(x) = 0$.
 \end{tabb}
aleft endpoint of initial interval bright endpoint of initial interval fthe function which is evaluated tolaccuracy goal the root x


SSJ
V. labo.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.