org.simBio.util.numerical.methods
クラス SecantMethod

java.lang.Object
  上位を拡張 org.simBio.util.numerical.methods.SecantMethod

public final class SecantMethod
extends java.lang.Object

This class provides Secant method to solve a nonlinear equation. Secant method is a difference Newton method.

バージョン:
$Revision: 1.1 $
作成者:
SHIMAYOSHI Takao

フィールドの概要
static double DEFAULT_EPSILON
          A tiny value as tolerance.
 
メソッドの概要
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.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_EPSILON

public static final double DEFAULT_EPSILON
A tiny value as tolerance.

関連項目:
定数フィールド値
メソッドの詳細

solve

public static double solve(MathFunction function,
                           Node node)
Solve the specified nonlinear equation. In this implementation of Secant method, the second initial value is calculated by numerical differentiation, and damping is used on iterative computation.

パラメータ:
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.
戻り値:
The function value on the aproximate solution.

solve

public static double solve(MathFunction function,
                           Node node,
                           double epsilon)
Solve the specified nonlinear equation. In this implementation of Secant method, the second initial value is calculated by numerical differentiation, and damping is used on iterative computation.

パラメータ:
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.
戻り値:
The function value on the aproximate solution.

solve

public static double solve(MathUnivariableFunction function,
                           Node node)
Solve the specified nonlinear equation. In this implementation of Secant method, the second initial value is calculated by numerical differentiation, and damping is used on iterative computation.

パラメータ:
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.
戻り値:
The function value on the aproximate solution.

solve

public static double solve(MathUnivariableFunction function,
                           Node node,
                           double epsilon)
Solve the specified nonlinear equation. In this implementation of Secant method, the second initial value is calculated by numerical differentiation, and damping is used on iterative computation.

パラメータ:
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.
戻り値:
The function value on the aproximate solution.


???(C) 2002-2007 ?????????????????????