public class Heun extends NumericalIntegrator
(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.
ADAMS, DEFAULT_INTEGRATOR, equation, error, EULER, GILL, HEUN, MILNE, RUNGEKUTTA3, RUNGEKUTTA4, RUNGEKUTTACASHCARP, RUNGEKUTTAFEHLBERG, timeStep
Constructor and Description |
---|
Heun(double timeStep,
DifferentialEquationInterface equation)
constructs a new Heun
|
Modifier and Type | Method and Description |
---|---|
double[] |
next(double x,
double[] y)
computes the next value
|
add, add, add, add, add, getError, getTimeStep, multiply, resolve, setTimeStep
public Heun(double timeStep, DifferentialEquationInterface equation)
timeStep
- the timeStepequation
- the equationpublic double[] next(double x, double[] y)
NumericalIntegrator
next
in class NumericalIntegrator
x
- the x value corresponding to the last y-value computedy
- the last y value#next(double, double[])
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.