|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simBio.util.numerical.methods.SecantMethod
public final class SecantMethod
This class provides Secant method to solve a nonlinear equation. Secant method is a difference Newton method.
| Field Summary | |
|---|---|
static double |
DEFAULT_EPSILON
A tiny value as tolerance. |
| Method Summary | |
|---|---|
static double |
solve(MathFunction function,
Node node)
Solve the specified nonlinear equation. |
static double |
solve(MathFunction function,
Node node,
double epsilon)
Solve the specified nonlinear equation. |
static double |
solve(MathUnivariableFunction function,
Node node)
Solve the specified nonlinear equation. |
static double |
solve(MathUnivariableFunction function,
Node node,
double epsilon)
Solve the specified nonlinear equation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_EPSILON
| Method Detail |
|---|
public static double solve(MathFunction function,
Node node)
function - The function to be solved. Its calculate method
is repeatedly called.node - The variable to be solved. Its value is setted to the
solution.
public static double solve(MathFunction function,
Node node,
double epsilon)
function - The function to be solved. Its calculate method
is repeated called.node - The variable to be solved.
Its value is set to the solution.epsilon - The accuracy. The iteration is repeated until the function
value gets lower than this value.
public static double solve(MathUnivariableFunction function,
Node node)
function - The function to be solved. Its calculate method
is repeated called.node - The variable to be solved. Its value is setted to the
solution.
public static double solve(MathUnivariableFunction function,
Node node,
double epsilon)
function - The function to be solved. Its calculate method
is repeated called.node - The variable to be solved. Its value is setted to the
solution.epsilon - The accuracy. The iteration is repeated until the function
value gets lower than this value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||