nl.tudelft.simulation.jstats.ode.integrators
Class RungeKutta4
java.lang.Object
nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator
nl.tudelft.simulation.jstats.ode.integrators.RungeKutta4
- All Implemented Interfaces:
- Serializable
public class RungeKutta4
- extends NumericalIntegrator
The RungeKutta4 numerical integrator.
(c) copyright 2002-2005 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:43 $
- Author:
- Peter
Jacobs
- See Also:
- Serialized Form
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 |
Method Summary |
double[] |
next(double x,
double[] y)
computes the next value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RungeKutta4
public RungeKutta4(double timeStep,
DifferentialEquationInterface equation)
- constructs a new RungeKutta4
- Parameters:
timeStep
- the timeStepequation
- the differentialEquation
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 computedy
- 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.