dwvisser.math
Class RungeKutta4

java.lang.Object
  |
  +--dwvisser.math.RungeKutta4

public class RungeKutta4
extends java.lang.Object


Constructor Summary
RungeKutta4(DiffEquations de)
           
 
Method Summary
 double[] dumbIntegral(double start, double end, double[] initValues, int numberOfSteps)
           
 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)
Method Detail

setVariables

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


step

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


dumbIntegral

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