In: Advanced Math
MATLAB question
The range of a projectile launched at velocity V and angle q
is R=2 V2 sin(q) cos(q)
What should the accuracy of the launch angle have be to keep the uncertainty of the range to within 5%.
%Matlab code forprojectile range
clear all
close all
%formula for Range of projectile motion
R=@(v,q) (v^2*sin(2*q))/9.8;
fprintf('\tFormula for Range of projectile motion=
(v^2*sin(2*q))/9.8\n')
rr=R(20,deg2rad(30));
fprintf('For v=20 and q=30 degree the range =%f m\n',rr)
un1=R(20,deg2rad(32));
un2=R(20,deg2rad(28));
fprintf('Uncertainity of range for launch angle (30+-2) is %f to %f\n',un1,un2)
%%%%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%