org.jscience.physics.nuclear.kinematics.math
Class RungeKutta4

java.lang.Object
  extended by org.jscience.physics.nuclear.kinematics.math.RungeKutta4

public class RungeKutta4
extends java.lang.Object

DOCUMENT ME!


Constructor Summary
RungeKutta4(DiffEquations de)
          Creates a new RungeKutta4 object.
 
Method Summary
 double[] dumbIntegral(double start, double end, double[] initValues, int numberOfSteps)
          DOCUMENT ME!
 void setVariables(double evaluateAt, double[] initialValues, double interval)
          See numerical recipes Section 16.1
 double[] step()
          Almost verbatim routine rk4 in Numerical Recipes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RungeKutta4

public RungeKutta4(DiffEquations de)
Creates a new RungeKutta4 object.

Parameters:
de - DOCUMENT ME!
Method Detail

setVariables

public void setVariables(double evaluateAt,
                         double[] initialValues,
                         double interval)
See numerical recipes Section 16.1

Parameters:
evaluateAt - DOCUMENT ME!
initialValues - DOCUMENT ME!
interval - DOCUMENT ME!

step

public double[] step()
Almost verbatim routine rk4 in Numerical Recipes.

Returns:
DOCUMENT ME!

dumbIntegral

public double[] dumbIntegral(double start,
                             double end,
                             double[] initValues,
                             int numberOfSteps)
DOCUMENT ME!

Parameters:
start - DOCUMENT ME!
end - DOCUMENT ME!
initValues - DOCUMENT ME!
numberOfSteps - DOCUMENT ME!
Returns:
DOCUMENT ME!