public class RungeKuttaCashCarp extends NumericalIntegrator
(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.
Modifier and Type | Field and Description |
---|---|
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
|
ADAMS, DEFAULT_INTEGRATOR, equation, error, EULER, GILL, HEUN, MILNE, RUNGEKUTTA3, RUNGEKUTTA4, RUNGEKUTTACASHCARP, RUNGEKUTTAFEHLBERG, timeStep
Constructor and Description |
---|
RungeKuttaCashCarp(double timeStep,
DifferentialEquationInterface equation)
constructs a new RungeKuttaCashCarp
|
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
protected static double[] a
protected static double[][] b
protected static double[] c
protected static double[] c4
protected static int nk
public RungeKuttaCashCarp(double timeStep, DifferentialEquationInterface equation)
timeStep
- the timeStepequation
- the differentialEquationpublic 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.