nl.tudelft.simulation.jstats.ode.integrators
Class RungeKuttaFehlberg

java.lang.Object
  extended by nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator
      extended by nl.tudelft.simulation.jstats.ode.integrators.RungeKuttaFehlberg
All Implemented Interfaces:
Serializable

public class RungeKuttaFehlberg
extends NumericalIntegrator

The RungeKuttaFehlberg.java numerical integrator.

(c) copyright 2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.4
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:42 $
Author:
Alexander Verbraeck
See Also:
Serialized Form

Field Summary
protected static double[] a
          the parameters for a_i, in f(x_n + a_i h, .)
protected static double[][] b
          the parameters for b_ij, in f(., y_n + b_p1 k1 + bp2 k2 + ...)
protected static double[] c
          the parameters for c_i, in y_n+1 = y_n + c_1 k_1 + c_2 k_2 + ...
protected static double[] c4
          the parameters for c4_i, in y_n+1 = y_n + c4_1 k_1 + c4_2 k_2 + ...
protected static int nk
          the numer of k-s in the method
 
Fields inherited from class nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator
ADAMS, DEFAULT_INTEGRATOR, equation, error, EULER, GILL, HEUN, MILNE, RUNGEKUTTA3, RUNGEKUTTA4, RUNGEKUTTACASHCARP, RUNGEKUTTAFEHLBERG, timeStep
 
Constructor Summary
RungeKuttaFehlberg(double timeStep, DifferentialEquationInterface equation)
          constructs a new RungeKuttaFehlberg
 
Method Summary
 double[] next(double x, double[] y)
          computes the next value
 
Methods inherited from class nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator
add, add, add, add, add, getError, getTimeStep, multiply, resolve, setTimeStep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

protected static double[] a
the parameters for a_i, in f(x_n + a_i h, .)


b

protected static double[][] b
the parameters for b_ij, in f(., y_n + b_p1 k1 + bp2 k2 + ...)


c

protected static double[] c
the parameters for c_i, in y_n+1 = y_n + c_1 k_1 + c_2 k_2 + ...


c4

protected static double[] c4
the parameters for c4_i, in y_n+1 = y_n + c4_1 k_1 + c4_2 k_2 + ...


nk

protected static int nk
the numer of k-s in the method

Constructor Detail

RungeKuttaFehlberg

public RungeKuttaFehlberg(double timeStep,
                          DifferentialEquationInterface equation)
constructs a new RungeKuttaFehlberg

Parameters:
timeStep - the timeStep
equation - the differentialEquation
Method Detail

next

public double[] next(double x,
                     double[] y)
Description copied from class: NumericalIntegrator
computes the next value

Specified by:
next in class NumericalIntegrator
Parameters:
x - the x value corresponding to the last y-value computed
y - the last y value
Returns:
the new value
See Also:
#next(double,double[])


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.