Problem:
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.
Additional Information:
This question is from Computer Science, particularly to C language. The question is about computing the movement of object in air under gravitational force with no air resistance with help of Euler's Method, Runge-Kutta Method. 3 programs with this regard has been written in C language. Please find out the programs in the solution Zip file.
Total Word Limit: 226 Words