Question: The trajectory of the object can be derived from basic physics and is given by the formula: where is the height, is the horizontal distance

The trajectory of the object can be derived from basic physics and is given by the formula:
where is the height, is the horizontal distance in meters, is the initial angle, is the acceleration due to gravity (), is the initial velocity in m/s, and is the initial height in meters. The range, , of the projectile is the horizontal distance it travels and can be determined using the formula:
.
Write a script to calculate the following three trajectories:
Trajectory1: , m/s, m
Trajectory2: , m/s, m
Trajectory3: , m/s, m
For each value of , generate a row vector of evenly-spaced values starting at and ending at the range . Compute the associated row vectors of values and assign the results to the variables named y1, y2, and y3 for ,, and respectively.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!