Question: Write a well-documented, Python program, hmuk1Q3.py that simulates tossing a baseball, straight-up, in the air. The speed imparted to the baseball is v0=25m/s(55mph). The equation


Write a well-documented, Python program, hmuk1Q3.py that simulates tossing a baseball, straight-up, in the air. The speed imparted to the baseball is v0=25m/s(55mph). The equation of motion is y(t)=v0t2gt2. The physical parameter g=9.8s2m. Use Python lists to represent time t and the quantities y(t),y(t) and y(t). The latter two quantities are instantaneous speeds and accelerations respectively. The instantaneous speed is formed as an approximation y(tn)tntn1y(tn)y(tn2). Similarly, the instantaneous acceleration is y(tn)tntn2y(tn)y(tn1). Hints: Form the time list from 0 to 5.1 seconds in increments of 100ms. Lists for y(t) and y(t) will have one and two less elements, respectively, than the list for y(t). Accordingly, set the first term of y(0)=0. Similarly, set the first two terms y(0)=y(0.1)=0. Write a well-documented, Python program, hmwk1Q4.py that simulates tossing a person hurling a rock horizontally at a speed of vx=10m/s from a bridge 50m above the river. baseball, straight-up, in the air. The equation of motions are: x(t)=vxt and y(t)=502gt2. The physical parameter g=9.8z2m. Use Python lists to represent time t and the quantities x(t),y(t) and y(t). Hints: Form the time list from 0 to 3.2 seconds in increments of 100ms. The list for y(t) will have one less element than the list for y(t). Accordingly, set the first term of y(0)=0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
