Question: help setting up a RK4 routine of a non linear second order differential equation


How do i set up a Fourth order Runge-Kutta, RK4, routine to solve this nonlinear second order differential equation?:

  • a=-2, b=1
  • k=0.1
  • x0=2
  • from t=0..100

Do you have any good examples that is similar to this problem?



Please Wait...