Applying Euler’s Method and Runge-Kutta Method for Calculating the Motion of a Projectile

Question

Consider the motion of a projectile in 2D under a constant gravitational force, neglecting air resistance. Recall from Euler’s method for solving

dy/dx = f (x, y) is summarized by yn+1 = yn + ∆ xf (xn, yn); xn+1 = xn + ∆x,

in which we are determining the x and y values at the (n + 1)th step from their values at the nth step, i.e. Euler’s method allows us to propagate the ODE to find values of y at a different value of the independent variable, x.

For the whole question please refer to the PDF document attached along with the solution.

 

Summary

The question belongs to Computer Science, particularly to C language. The question is about calculating the movement of an object in air under gravitational force with no air resistance with the help of Euler’s Method, Runge-Kutta Method. 3 programs with this regard has been written in C language. Please find the programs in the solution Zip file.

Total Word Count 226

 

Download Full Solution

Comments

  • HWA
    Rasha

    this is a very good website

  • HWA
    maani

    I have 50 questions for the same test your page is showing only 28

  • HWA
    joeanne

    hi can you please help or guide me to answer my assignments. thanks

  • HWA
    joeanne

    hi can anyone help or guide me to my assignments. thanks

  • HWA
    Monik


  • HWA
    Cristina

    This solution is perfect ...thanks

  • HWA
    Janete

    Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes

  • HWA
    Sandeep

    Perfect bank of solution. 

  • HWA
    Oxana

    great !

  • HWA
    Paul Brandon-Fritzius

    thanks for the quick response. the solution looks good. :)

  • HWA
    tina Johnson

    thnx for the answer. it was perfect. just the way i wanted it. 

  • HWA
    Giuseppe

    works fine.