|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opale.mathtools.RootFinder1D | +--opale.mathtools.Bisection
Implements the bisection method for find the root of a function. The algorithm is conformed with the book numerical recipes in C. If the precision is not reached, then the number of iterations is MAXITERATION and the variable NITER is set to -1.
Fields inherited from class opale.mathtools.RootFinder1D |
MAXITERATION, NITER, PRECISION |
Constructor Summary | |
Bisection()
|
Method Summary | |
double |
find(IyFx f,
double x0,
double x1)
Solves equation f(x) = 0 by bisection's method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Bisection()
Method Detail |
public double find(IyFx f, double x0, double x1)
find
in class RootFinder1D
opale.mathtools.RootFinder1D
IyFx
- f, a function.double
- x0, x1, values that bracket the root.RootSolverException.
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |