prog1a_2533_sp11

prog1a_2533_sp11 - ymax=v0^2*sin(theta)^2/(2*g);

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% CSC 2533 % Spring 2011 % Assignment 1a d=2375; h=1345; v0=295; x=735; g=9.81; t=sqrt(2*(v0^2-h*g)+2*sqrt((v0^2-h*g)^2-(h^2+(d+x)^2)*g^2))/g; theta=acos((d+x)/(v0*t));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ymax=v0^2*sin(theta)^2/(2*g); y=d*tan(theta)-g*d^2/(2*v0^2*cos(theta)^2); fprintf('t=%.5f theta=%.5f ymax=%.5f y=%.5f\n',t,theta*180/pi,ymax,y);...
View Full Document

Ask a homework question - tutors are online