Package cnuphys.rk4
Class RkTest
java.lang.Object
cnuphys.rk4.RkTest
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidstatic voidtest()static voidTestUniform(double[] yo, double to, double tf, double h, IDerivative deriv, IStopper stopper, IRkListener listener, double[] answer) Test the uniform step size
- 
Field Details- 
CoshLike
 
- 
- 
Constructor Details- 
RkTestpublic RkTest()
 
- 
- 
Method Details- 
TestUniformpublic static void TestUniform(double[] yo, double to, double tf, double h, IDerivative deriv, IStopper stopper, IRkListener listener, double[] answer) Test the uniform step size- Parameters:
- yo- initial values. Probably something like (xo, yo, zo, vxo, vyo, vzo).
- to- the initial value of the independent variable, e.g., time.
- tf- the maximum value of the independent variable.
- deriv- the derivative computer (interface). This is where the problem specificity resides.
- stopper- if not- nullwill be used to exit the integration early because some condition has been reached.
- listener- listens for each step
- answer-
 
- 
testpublic static void test()
- 
main
 
-