Question: When Legolas the archer fires an arrow from his bow, its position can be described through the equations: where x 0 is the initial x-position

When Legolas the archer fires an arrow from his bow, its position can be described through the equations:

xo + vo cos (0)t y = yo+vo sin (0)t- x 1

where x 0 is the initial x-position [m], y 0 is the initial y-position [m], v 0 is the initial velocity [m/s], B is the launch angle [degrees], g = 9.81 m/s 2 and t is time [s].

1. Create a function that determines the x and y position of an arrow given initial conditions and a time vector are provided as inputs.

2. Create a function that plots the position of an arrow in the x-y plane given initial conditions and a time vector are provided as inputs. The plot should have axis labels and a title.

3. Create a function that can determine range (landing distance) of an arrow, given initial conditions are provided as inputs. Assume the ground is at y = 0.

4. Create a function that determines the magnitude and direction (in degrees) of velocity of an arrow given initial conditions and a time vector are provided as inputs.

xo + vo cos (0)t y = yo+vo sin (0)t- x 1 2912

Step by Step Solution

3.51 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 function xypositiontx0y0v0th g981 xx0v0cosdtht yy0v0sindtht05gt... View full answer

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!

Related Book