Class RkTest
java.lang.Object
cnuphys.rk4.RkTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
RkTest
public RkTest()
-
-
Method Details
-
TestUniform
public 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 notnullwill be used to exit the integration early because some condition has been reached.listener- listens for each stepanswer-
-
test
public static void test() -
main
-