All Packages Class Hierarchy This Package Previous Next Index
Class ChaosDemos.ode
java.lang.Object
|
+----ChaosDemos.ode
- public class ode
- extends Object
Class to advance ODE's through single time step.
Uses 5th order Runga-Kutta method with given timestep
and embedded 4th order method for error checking.
(See Numerical Recipes, 16.2)
- Version:
- Jume 7, 1997
- Author:
- Michael Cross
-
err
- array of error estimates
-
parent
- Parent class of type dynamicGraph
-
ode(dynamicGraph, int)
-
-
timeStep(double[], double, double)
- Replaces input vector with vector after time increment dt
Calls derivs(double[x], double t, int n) method in
parent class.
err
public double err[]
- array of error estimates
parent
dynamicGraph parent
- Parent class of type dynamicGraph
ode
public ode(dynamicGraph target,
int n)
- Parameters:
- target - calling class
- n - number of OSDs
timeStep
public double timeStep(double x[],
double t,
double dt) throws ArithmeticException
- Replaces input vector with vector after time increment dt
Calls derivs(double[x], double t, int n) method in
parent class.
- Parameters:
- x[] - vector of variables
- t - current time
- dt - time increment desired
- Returns:
- the updated value of the time t=t+dt
All Packages Class Hierarchy This Package Previous Next Index