public class Milne extends CachingNumericalIntegrator
(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.
startingIntegrator, startingSubSteps
ADAMS, DEFAULT_INTEGRATOR, equation, error, EULER, GILL, HEUN, MILNE, RUNGEKUTTA3, RUNGEKUTTA4, RUNGEKUTTACASHCARP, RUNGEKUTTAFEHLBERG, timeStep
Constructor and Description |
---|
Milne(double timeStep,
DifferentialEquationInterface equation)
constructs a new Milne integrator
|
Milne(double timeStep,
DifferentialEquationInterface equation,
short integrationMethod,
int startingSubSteps)
constructs a new Milne integrator, indicating the starting method and
number of substeps
|
Modifier and Type | Method and Description |
---|---|
double[] |
next(double x)
The integrators that extend the CachingNumericalIntegrator calculate the
value of y(x+timeStep) just based on the x-value.
|
getDY, getY, next, setTimeStep
add, add, add, add, add, getError, getTimeStep, multiply, resolve
public Milne(double timeStep, DifferentialEquationInterface equation)
timeStep
- the timeStep to use in the estimation.equation
- the equation to use.public Milne(double timeStep, DifferentialEquationInterface equation, short integrationMethod, int startingSubSteps)
timeStep
- the timeStep to use in the estimation.equation
- the equation to use.integrationMethod
- the primer integrator to usestartingSubSteps
- the number of substeps per timestep during
starting of the integratorpublic double[] next(double x)
CachingNumericalIntegrator
next
in class CachingNumericalIntegrator
x
- the x-value to use in the calculationCachingNumericalIntegrator.next(double)
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.