The position as a function of time (x(t), (t)) of a projectile fired with a spee
ID: 2997059 • Letter: T
Question
The position as a function of time (x(t), (t)) of a projectile fired with a speed of v0 at an angle alpha is given by x(t0=v0 cos alpha t y(t)=v0 sin alpha.t-1/2gt2 where g= 9.81 m/s2. The polar coordinates of the projectile at time t are (r(t), theta(t)), where r(t0= sqrt x9t02=y(t) and tan theta(t)=y(t)/x(t) Consider the case where v0 = 162m/s and alpha = 70 degree . Determine r(t) and theta(t) for t = 1,6,11 31s. The demand for water during a fire is often the most important factor in the design of distribution storage tanks and pumps. For communities with populations less than 200,000, the demand Q (in gallons/min) can be calculated by: q=1020 sqrt p(1-0.01 sqrt p) where P is the population in thousands. Set up a vector for P that starts at 10 and increments by 10 up to 200. Use element-by-element computations to determine the demand Q for each population in P.Explanation / Answer
question number 2).
function[y]=myfun()
x=[10:10:200];
y(1,20)=0;
for i=1:1:20
y(1,i)=1020*sqrt(x(1,i))*(1-0.01*sqrt(x(1,i)));
end
end
i am working on first...
1)
function[]=myfun()
t=[1 6 11 31];
a=pi/180;
alpha=70*a;
v=162;
for i=1:1:4;
x(1,i)=v*cos(alpha)*t(1,i);
y(1,i)=v*sin(alpha)*t(1,i)-1/2*9.81*t(1,i)^2;
tan(1,i)=y(1,i)/x(1,i);
r(1,i)=sqrt(x(1,i)^2+y(1,i)^2);
fprintf('r(t) for t=%d, %d ',t(1,i),r(1,i))
fprintf('tan(thetat) for %d %d ',t(1,i),tan(1,i));
end
end
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.