Package cnuphys.rk4
Interface IAdvance
public interface IAdvance
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.boolean
Reports whether this advancer knows how to compute an error array
-
Method Details
-
advance
void 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
-
computesError
boolean computesError()Reports whether this advancer knows how to compute an error array- Returns:
true
if this advancer knows how to compute errors
-