Question

Numerical Methods for Engineers and Scientists 3rd Edition – An Introduction with Applications Using MATLAB -...

Numerical Methods for Engineers and Scientists 3rd Edition – An Introduction with Applications Using MATLAB - Gilat | Subramaniam Problem 3.29

A quarterback throws a pass to his wide receiver running a route. The quarterback releases the ball at a height of hQ . The wide receiver is supposed to catch theball straight down the field 60 ft away at a height of h R .

The equation that describes the motion of the football is the familiar equation of projectile motion from physics:

                y = x tan(θ) - 1/2[x2 g/v02 cos2(θ)] + hQ

where x and y are the horizontal and vertical distance, respectively, g = 32.2 ft/s2 is the acceleration due to gravity, v0 is the initial velocity of the football as it leaves the quarterback's hand, and θ is the angle the football makes with the horizontal just as it leaves the quarterback's throwing hand.

For g = 32.2 ft/s², v0 = 50 ft/s, x = 60 ft, hQ = 6.5 ft, and hR = 7 ft, find the angle θ at which the quarterback must launch the ball.

Solve Problem 3.29 utilizing Newton’s Method, Secant Method, Bisection method and Regula Falsi method

Print table for each method include relative error and real error and how many iterations for convergance.

Use MATLAB built-in function fzero to determine the true value and add this result to the data table or list.

Provide the graph that shows the solution only.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

football=@(x) xXtan(theta)-(((0.5)X(x^2)*g)/(v0^2))X(1/(cos(theta))^2)+hq;

v0=50;
g=32.2;
x=60;
hq=6.5;
hR=7;


TolMax=.0001

a=2; b=3; imax=20; TolMax=0.00001;
fa = football(a);
fb = football(b);

n=(log(b-a)-log(TolMax))/log(2)

if fa*fb>0
disp('Error: function has the same sign at points a and b (same side of the solution)')

for i = 1:imax
xNS=(a+b)/2;
toli=(b-a)/2;
FxNS=F(xNS);
fprintf('%3i %11.6f %11.6f %11.6f %11.6f %11.6f\n', i, a, b, xNS, FxNS, TolMax)
if FxNS==0
fprintf('An exact solution x=%11.6f was found', xNS)
break
end
if toli<TolMax
break
end
if i==imax
fprintf('solution was not obtained in %i iterations', imax)
break
end
if fa*FxNS<0
b=xNS;
else
a=xNS;
end
end
end
end

function [theta] = football( x, v0, g, hq )

y=x*tan(theta)-(((0.5)*(x^2)*g)/(v0^2))*(1/(cos(theta))^2)+hq;

end

Add a comment
Know the answer?
Add Answer to:
Numerical Methods for Engineers and Scientists 3rd Edition – An Introduction with Applications Using MATLAB -...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • MATLAB Grader CONTENTS For this problem you will model a field goal attempt in an NFL football ga...

    MATLAB Grader CONTENTS For this problem you will model a field goal attempt in an NFL football game as a simple projectile motion problem. For a field goal attempt, the ball is snapped seven yards back from the line of scrimmage, where the place holder holds the ball on the ground for the kicker. For a successful attempt, the kicker must kick the ball through the uprights above the cross bar, which is ten feet high and parallel to the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT