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

Variable Index

 o err
array of error estimates
 o parent
Parent class of type dynamicGraph

Constructor Index

 o ode(dynamicGraph, int)

Method Index

 o 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.

Variables

 o err
 public double err[]
array of error estimates

 o parent
 dynamicGraph parent
Parent class of type dynamicGraph

Constructors

 o ode
 public ode(dynamicGraph target,
            int n)
Parameters:
target - calling class
n - number of OSDs

Methods

 o 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