Question: EGR 1 5 0 Computer Methods in Engineering Fall 2 0 2 4 Homework 1 : Projectile Motion Projectile motion is a classic problem in

EGR150 Computer Methods in Engineering
Fall 2024
Homework 1: Projectile Motion
Projectile motion is a classic problem in physics, and it is also a good example of breaking
a seemingly complicated problem down into easy-to-manage parts. The key is that if air
resistance can be neglected, then vertical and horizontal motion are independent of one
another, and we can work on one at a time.
Components of initial velocity: for a given initial velocity v0 and a firing angle , we can
calculate the initial velocity in the x and y directions using cosine and sine:
v0x=v0**cos();,v0y=v0**sin()
Flight time: if the projectile follows a parabolic path and lands at the same elevation
(height) as it was launched, then the governing equation can be simplified as follows
(g is the acceleration of gravity, yf is final height, y0 is initial height, t is flight time):
yf=y0+v0y**t-0.5**g**t2 simplifies tov0y=0.5**g**t,ort=(2**v0yg)
Distance traveled: the projectile travels at a constant horizontal speed the entire time
it is in the air, so the distance traveled is just: d=v0x**t
Assignment
Type "diary YourBlazerID_HW1_diary" in the command window before you begin
working, and "diary off" when you finish. Whenever you start and stop work on the
assignment, do the same thing each time.
Write a script named "YourBlazerID_HW1.m" that computes projectile motion using
the following steps and features:
choose camelCase names for all of your variables
include comments for the overall script and for each section
specify initial values of 50ms for initial velocity, 30 degrees for the firing angle,
and 9.8ms2 for the acceleration of gravity
calculate the x and y components of the initial velocity
calculate the flight time
calculate the total distance traveled
display the flight time and distance traveled to the command window, and suppress
all other output
Submit files "YourBlazerID_HW1.m" and "YourBlazerID_HW1_diary" on Canvas
EGR 1 5 0 Computer Methods in Engineering Fall 2

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 Civil Engineering Questions!