Question: Done in Python: And please make sure that all the requirements from the question are present in the code. Plot the trajectory of a ball
Done in Python:
And please make sure that all the requirements from the question are present in the code.

Plot the trajectory of a ball The formula for the trajectory of a ball is given by f(x) x tan -2v2 cos20+) wherex is a coordinate along the ground, g-9.8 is the acceleration due to gravity,is the magnitude of the initial velocity which makes an angle with the x-axis, and (0,Yo) is the initial position of the ball. Write a program to calculate the trajectory y =f(x) for 0 x 16, with yo-10, 0-10, -50. (Do Python trigonometric functions accept radians or degrees?) Let x vary between O and 16 with 101 points You will need to: plot the trajectory data using a blue solid line (') change the plot range to match the specification above for 0 where you provide a and b) y 16 and for x (use the plt.ylim a,b function or its counterpart for x . add axes labels to your plot, "position / x' and 'height / y' Your submission should include a plot. Make sure to import matplotlib.pyplot as plt. Use plt.plot but not plt.show in your submission. (This assignment is based on Langtangen, Exercise 5.13.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
