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

java.lang.Object
  extended bynl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator
      extended bynl.tudelft.simulation.jstats.ode.integrators.RungeKutta3

public class RungeKutta3
extends NumericalIntegrator

The RungeKutta 3 numerical integrator.

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

Since:
1.4
Version:
1.2 Apr 20, 2004
Author:
Peter Jacobs

Field Summary
 
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
RungeKutta3(double timeStep, DifferentialEquationInterface equation)
          constructs a new RungeKutta3
 
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
 

Constructor Detail

RungeKutta3

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

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-2004 Delft University of Technology, the Netherlands. All Rights Reserved.