extension joomla, template joomla,banner extension joomla,jomla slider,slider joomla
Numerical method : Solution of ordinary differential equation using RK4 method in C


  1. Start
  2. Declare and Initialize necessary variable likes K1, K2, K3, K4 etc.
  3. Declare and define the function that returns the functional value.
  4. Get the initial value of x, initial value of y, no. of iteration and interval from user.
  5. for i = 0 to i < n go to step 6.
  6. Do the following calculation: and go to step 7RK_4
  7. The new values of x and y are: x = x + interval, y = y + K;
  8. print the value of x and y;
  9. stop



Source Code:




Related Article

destination source:https://www.programming-techniques.com/2011/09/numerical-method-solution-of-ordinary-differential-equation-using-rk4-method-in-c.html