Question: In Python. Exercise 7.1 (5 points) Consider the commonly studied problem of projectile motion from the first semester of introductory physics, depicted in the figure
Exercise 7.1 (5 points) Consider the commonly studied problem of projectile motion from the first semester of introductory physics, depicted in the figure below. Yo For the projectile launched with an initial speed vo at an angle with the horizontal, from an initial height yo, if the friction is neglected, the equations of motion are: oocoss) =0 We want to use the above equation to find out the launch angle needed, in order to hit a given target (xy), if the launch speed vo and the initial height yo are known. Since the equation for the angle is non-linear we will have to use a numerical method to find it. (a) First plot the left side of the equation (1) as a function of the angle for the following inputs: vo 100 m/s, yo 10 m, x 900 m, and y 5 m. Use for the gravitational acceleration: g 9.81 m/s. The zero crossings should give you an idea on where the solutions are located and how many solutions there are. (Note: a good range for e is 5 degrees to 90 degrees). (b) Write a Python program to calculate the possible launching angles 0, for which the projectile would hit the target under the above conditions. You can use any of the algorithms covered in class (relaxation, binary search, Newton, or secant) as long as you use your own code to execute them. (c) Plot on the same graph all the possible projectile trajectories that would hit the target. Note: you should express and manipulate the angle 0 in degrees throughout the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
