Вы находитесь на странице: 1из 11

In[30]:=

H*Reset variables*L
Clear@H, RD
Do@Print@D, 89<D

H*Maximum height achieved by the ball... '90'*L


Print@"HeightMax = ", H = Input@"Enter the maximum height."DD

H*Maximum height achieved by the ball... '127.5'*L


Print@"RangeMax = ", R = Input@"Enter the maximum horizontal range cleared"DD
H*Leading coefficient of the quadratic*L
Print@"A = ", A = H- 4 H R ^ 2LD
H*Second quadratic coefficient*L
Print@"B = ", B = H4 H RLD

Print@"The Quadratic equation satisfying these conditions is y = ",


A, x ^ 2, " + ", B, xD
H*Solving the quadratic for the values
of x when the ball is 10 feet from the ground*L
solx = Simplify@Solve@A * x ^ 2 + B * x - 10 0, xDD;
x1 = x . solx@@1DD;
x2 = x . solx@@2DD;

Print@"The ball is first ten feet from


the ground during its ascend after it has travelled ", x1,
" feet horizontally, and again during its descend after it has travelled ",
x2, " feet horizontally. It follows that the player must stand at the ",
HHx2 - 30L 3L,
" yard line to be at the maximum distance from the field goal post and
still clear the field goal. Furthermore the path looks as follows: "D
H*Plot of he quadratic*L
Plot@A * x ^ 2 + B * x, 8x, - 5, R + 5<D
Print@D
Print@D
Print@D
Print@D

H***Begin Equations of Motion***L

H*Aceleration due to gravity in fts^2*L


g = 32;
H*Angle at which it's kicked*L

Projectile motion main.nb

theta = ArcTan@H4 H RLD;

H*Magnitude of the initial velocity*L


v0 = Sqrt@H2 * g * H HR ^ 2 + 16 * H ^ 2LL H16 * H ^ 2LD;
vy = v0 * Sin@thetaD;
vx = v0 * Cos@thetaD;

H*Determinig time t1 and t2 at which the ball is 10 ft from the ground*L


solt = Simplify@Solve@- 16 t ^ 2 + vy * t - 10 0, tDD;
t1 = t . solt@@1DD;
t2 = t . solt@@2DD;
H*Using time t1 and t2 to determine the
horizontal distance travelled in those times*L
xt1 = vx * t . solt@@1DD;
xt2 = vx * t . solt@@2DD;

Print@"The ball is kicked at an angle of ", H180 * theta PiL,


" degrees, and with an initial velocity magnitude of ", v0,
" feet per second. It follows that the kinematic equations HtL= xHtL
+ yHtL =Hv_x*tL + H.5*g*t^2 + v_y*tL for the scenario matching
these condions are HtL= H", vx, "tL + H", .5 * g, "t^2 + ", vy, "tL "D

Print@"Using the equations of motion the ball is first ten feet


from the ground during its ascend after it has travelled for ",
t1, " seconds, and it has travelled ", xt1,
" feet along the horizontal, and again during its descend after
it has travelled ", t2, " seconds, and it has travelled ", xt2,
" feet along the horizontal. It follows that the player must stand at the ",
HHxt2 - 30L 3L, " yard line to be at the maximum distance from
the field goal post and still clear the field goal. Furthermore
the path using the equations of motion looks as follows: "D
H*Plot of the equations of motion*L
ParametricPlot@8vx * u, - .5 * g * u ^ 2 + vy * u<, 8u, - .15, Hvy 16L + .15<D

Projectile motion main.nb

HeightMax = 90
RangeMax = 127.5
A = - 0.0221453
B = 2.82353
The Quadratic equation satisfying these conditions is y = - 0.0221453x2 + 2.82353x
The ball is first ten feet from the ground during its ascend after it has travelled
3.64592 feet horizontally, and again during its descend after it has travelled
123.854 feet horizontally. It follows that the player must stand at the
31.2847 yard line to be at the maximum distance from the field goal post
and still clear the field goal. Furthermore the path looks as follows:

80

60

Out[41]=

40

20

20

40

60

80

100

120

The ball is kicked at an angle of 70.4976


degrees, and with an initial velocity magnitude of 80.514
feet per second. It follows that the kinematic equations HtL= xHtL + yHtL
=Hv_x*tL + H.5*g*t^2 + v_y*tL for the scenario matching these condions are
26.8794tL + H16.t^2 + 75.8947tL

HtL= H

Using the equations of motion the ball is first ten feet from the ground during its
ascend after it has travelled for 0.13564 seconds, and it has travelled
3.64592 feet along the horizontal, and again during its descend after it has travelled
4.60778 seconds, and it has travelled 123.854
feet along the horizontal. It follows that the player must stand at the 31.2847
yard line to be at the maximum distance from the field goal post and still clear the
field goal. Furthermore the path using the equations of motion looks as follows:

Projectile motion main.nb

80

60

Out[58]=

40

20

20

40

60

80

100

120

Вам также может понравиться