# 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

• Rasha

this is a very good website

• maani

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

• joeanne

• joeanne

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

• Monik

• Cristina

This solution is perfect ...thanks

• 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

• Sandeep

Perfect bank of solution.

• Oxana

great !

• Paul Brandon-Fritzius

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

• tina Johnson

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

• Giuseppe

works fine.