Answered step by step
Verified Expert Solution
Question
1 Approved Answer
clc % clears console clear all % clears the history v = 2 0 0 ; % initialize velocity as 0 theta _ 1 =
clcclears console
clear allclears the history
v;initialize velocity as
theta;initialize theta as
g;initialize gravity as
kvsindthetag;time to get back on earth if there was no slope
for i::kcalculate x and h in tep
ifvsindthetaigii
vcosdthetai
defi;if it touchees or goes after the line
then break
break;
end
end
zvcosdthetadef;
zvsindthetadefgdefdef;
plotvcosdthetadef
vsindthetadef
gdefdefor;plot that point
textzz numstrz;; numstrz;
hold on
T::def;
XvcosdthetaT;
HvsindthetaTgTT;
plotXHc;plot the slope
hold on
xlabelrange meters;
ylabeldistance meters;
legendX numstrz; Y
numstrz;;
A::;
BA;
plotAB;
hold off;
dispTheta for max range is: ;
alphaatand;
thetaalpha
dispMaximum range is: ;
Rvvgcosdalphacosdalpha
sindalpha
At thetadeg there would be maximum range.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started