Package cnuphys.rk4
Interface IAdvance
public interface IAdvance
- 
Method SummaryModifier and TypeMethodDescriptionvoidadvance(double t, double[] y, double[] dydt, double h, IDerivative deriv, double[] yout, double[] error) Advance the solution by one step of the independent variable.booleanReports whether this advancer knows how to compute an error array
- 
Method Details- 
advancevoid advance(double t, double[] y, double[] dydt, double h, IDerivative deriv, double[] yout, double[] error) Advance the solution by one step of the independent variable.- Parameters:
- t- the value of the independent variable (e.g., t) (input).
- y- the values of the state vector (usually [x,y,z,dx/dt, dy/dt, dz/dt]) at t (input).
- dydt- values of the derivative at the current t (before advance) (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 (output)
- error- the error vector which is filled in if the advancer knows how to compute errors
 
- 
computesErrorboolean computesError()Reports whether this advancer knows how to compute an error array- Returns:
- trueif this advancer knows how to compute errors
 
 
-