Академический Документы
Профессиональный Документы
Культура Документы
DE SAN MARCOS
FACULTAD DE INGENIERIA ELECTRONICA Y ELECTRICA
Curso: Fsica 1
Integrantes:
Lima Per
2017
PRACTICA DE FISICA I (N 85 del libro)
CDIGO EMPLEADO:
v0=input('ingrese velocidad inicial:');
o=input('ingrese Angulo de lanzamiento:');
t1=input('ingrese tiempo inicial:');
t2=input('ingrese tiempo final:');
N=input('ingrese numero de intervalos de tiempo:');
fprintf('tiempo Xf Yf Vx Vy\n');
dt=(t2-t1)/N;
xi=v0*cosd(o)*t1;
yi=v0*sind(o)*t1-(9.81/2)*(t1)^2;
vx=v0*cosd(o);
vyi=v0*sind(o)-(9.81)*t1;
for(i=1:N)
t=t1+i*dt;
xf=xi+vx*i*dt;
yf=yi+vyi*i*dt-(9.81/2)*(i*dt)^2;
vx=v0*cosd(o);
vyf=vyi-(9.81)*i*dt;
fprintf('%.3f %.3f %.3f %.3f %.3f\n',t,xf,yf,vx,vyf);
end;
4.5
= = 45
0.1
0.200 9.063 4.030 45.315 19.169 1.200 54.378 18.294 45.315 9.359
0.300 13.595 5.898 45.315 18.188 1.300 58.910 19.181 45.315 8.378
0.400 18.126 7.668 45.315 17.207 1.400 63.442 19.969 45.315 7.397
0.500 22.658 9.339 45.315 16.226 1.500 67.973 20.660 45.315 6.416
0.600 27.189 10.913 45.315 15.245 1.600 72.505 21.253 45.315 5.435
0.700 31.721 12.388 45.315 14.264 1.700 77.036 21.747 45.315 4.454
0.800 36.252 13.766 45.315 13.283 1.800 81.568 22.143 45.315 3.473
0.900 40.784 15.045 45.315 12.302 1.900 86.099 22.442 45.315 2.492
1.000 45.315 16.226 45.315 11.321 2.000 90.631 22.642 45.315 1.511
2.100 95.162 22.744 45.315 0.530
Tiempo Xf Yf Vx Vy
Tiempo Xf Yf Vx Vy