cnuphys.integrator
Interface IStepper

All Known Implementing Classes:
RungeKutta4

public interface IStepper


Method Summary
 void advance(double t, double[] y, double[] dydt, double h, IDerivative deriv, double[] yout)
          Advance the solution by one step of the independent variable.
 

Method Detail

advance

void advance(double t,
             double[] y,
             double[] dydt,
             double h,
             IDerivative deriv,
             double[] yout)
Advance the solution by one step of the independent variable.

Parameters:
t - the value of the independent variable (usually t) (input).
y - the values of the state vector (usually [x,y,z,vx,vy,vz]) at t (input).
dydt - will be filled with the values of the derivatives at t (input).
h - the current step size (input)
deriv - the function (interface) that can compute the derivatives. That is where the problem specificity resides (input).
yout - where the state vector at the next step will be stored (iutput)