Package cnuphys.rk4

Class RkTest

java.lang.Object
cnuphys.rk4.RkTest

public class RkTest extends Object
  • Field Details

  • 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 not null will be used to exit the integration early because some condition has been reached.
      listener - listens for each step
      answer -
    • test

      public static void test()
    • main

      public static void main(String[] arg)