You are on page 1of 9

%CORRECCION DE LA PRUEEBA PARCIAL

%MAURICIO CHUQUITARCO
%hallar las integrales indefinida
% 1 y=5*cos(x)+4*sin(x)dx
syms x
y= 5*cos(x)+4*sin(x);
integral = diff (y,x);
pretty (integral)

% 2 y=1-csc(a)*cot(a)
syms a
z= 1-csc(a)*cot(a);
integral = diff (z,a);
pretty (integral)

%3 y=(sec(b).^2)-sin(b)
syms b
m = (sec(b).^2)-sin(b);
integral = diff (m,b);
pretty (integral)

4 cos(x) - 5 sin(x)

2
cot(a) + 1 cos(a) cot(a)
----------- + -------------
sin(a) 2
sin(a)

2 sin(b)
-------- - cos(b)
3
cos(b)

respuesta:
%2.- ejercicio resolverlos

%1.-la posicion de una particula a lo largo de una linea recta esta


dada por S=1.5t^3-13.5t^2+22.5t m donde t esta dada en segundos.
Determine la posicion de la particula cuando t=6s y trace las
graficas
%grafica s vs t
t= 0:0.01:6;
s=1.5*t.^3-13.5*t.^2+22.5*t;
figure ;
hold on

1
plot(t,s,'g','linewidth',5);
grid on
title ( 'grafica (s vs t) ' );
xlabel('tiempo(t)');
ylabel('posicion (s)');
legend ('s=1.5*t.^3-13.5*t.^2+22.5*t(m)')
% gfafica v vs t
t2= 0:0.01:6;
v=4.5*t2.^2-27*t2+22.5;
figure ;
hold on
plot(t2,v,'g','linewidth',5);
grid on
title ( 'grafica (v vs t) ' );
xlabel('tiempo(t)');
ylabel('posicion (s)');
legend ('v=4.5*t2.^2-27*t2+22.5');

%2.- segundo ejercicio


% el avion despega con la aceleracion descrita por la grafica.
si arranca del reposo y requiere una velocidad de 90 m/s para
despegar , determine la longuitud minima de pista requerida y el
tiempo t' para despegar trace las graficas v vs t s vs t
% grafica (a vs t)
t3= 0:0.02:10;
t4= 10:0.02:16.25;
a=0.8*t3;
a1=8+0*t4;
figure ;
plot(t3,a,'g','linewidth',5);
hold on
plot(t4,a1,'g','linewidth',5);
axis([0 17 0 10])
grid on
title ( 'grafica (a vs t) ' );
xlabel('tiempo(t)');

% grafica (v vs t)
t3= 0:0.02:10;
t4= 10:0.02:16.25;
v=0.4*t3.^2;
v1=8*t4-40;
figure ;
plot(t3,v,'g','linewidth',5);
hold on
plot(t4,v1,'r','linewidth',5);
grid on
title ( 'grafica (v vs t) ' );
xlabel('tiempo(t)');
ylabel('velocidad (m/s)');
legend ('v=0.4*t3.^2','v1=4*t4-40');

2
%grafica (x vs t)
t3= 0:0.02:10;
t4= 10:0.02:16.25;
x=(0.4./3)*t3.^3;
x1=4*t4.^2-40*t4+133.33;
figure ;
plot(t3,x,'g','linewidth',5);
hold on plot(t4,x1,'r','linewidth',5);
grid on title ( 'grafica (x vs t) ' );
xlabel('tiempo(t)');
ylabel('posicion (m)');
legend ('x=(0.4./3)*t3.^3','x1=4*t4.^2-40*t4+133.33');

Error using hold (line 47)


First argument must be an axes object.

Error in CHUQUITARCO_CORRECION_3362 (line 98)


hold on plot(t4,x1,'r','linewidth',5);

Published with MATLAB® R2019b

3
%2.- ejercicio resolverlos

%1.-la posicion de una particula a lo largo de una linea recta esta


dada por S=1.5t^3-13.5t^2+22.5t m donde t esta dada en segundos.
Determine la posicion de la particula cuando t=6s y trace las
graficas
%grafica s vs t
t= 0:0.01:6;
s=1.5*t.^3-13.5*t.^2+22.5*t;
figure ;
hold on
plot(t,s,'g','linewidth',5);
grid on
title ( 'grafica (s vs t) ' );
xlabel('tiempo(t)');
ylabel('posicion (s)');
legend ('s=1.5*t.^3-13.5*t.^2+22.5*t(m)')
% gfafica v vs t
t2= 0:0.01:6;
v=4.5*t2.^2-27*t2+22.5;
figure ;
hold on
plot(t2,v,'g','linewidth',5);
grid on
title ( 'grafica (v vs t) ' );
xlabel('tiempo(t)');
ylabel('posicion (s)');
legend ('v=4.5*t2.^2-27*t2+22.5');

1
2
Published with MATLAB® R2019a

3
%2.- segundo ejercicio
% el avion despega con la aceleracion descrita por la grafica.
si arranca del reposo y requiere una velocidad de 90 m/s para
despegar , determine la longuitud minima de pista requerida y el
tiempo t' para despegar trace las graficas v vs t s vs t
% grafica (a vs t)
t3= 0:0.02:10;
t4= 10:0.02:16.25;
a=0.8*t3;
a1=8+0*t4;
figure ;
plot(t3,a,'g','linewidth',5);
hold on
plot(t4,a1,'g','linewidth',5);
axis([0 17 0 10])
grid on
title ( 'grafica (a vs t) ' );
xlabel('tiempo(t)');

% grafica (v vs t)
t3= 0:0.02:10;
t4= 10:0.02:16.25;
v=0.4*t3.^2;
v1=8*t4-40;
figure ;
plot(t3,v,'g','linewidth',5);
hold on
plot(t4,v1,'r','linewidth',5);
grid on
title ( 'grafica (v vs t) ' );
xlabel('tiempo(t)');
ylabel('velocidad (m/s)');
legend ('v=0.4*t3.^2','v1=4*t4-40');

%grafica (x vs t)
t3= 0:0.02:10;
t4= 10:0.02:16.25;
x=(0.4./3)*t3.^3;
x1=4*t4.^2-40*t4+133.33;
figure ;
plot(t3,x,'g','linewidth',5);
hold on
plot(t4,x1,'r','linewidth',5);
grid on
title ( 'grafica (x vs t) ' );
xlabel('tiempo(t)');
ylabel('posicion (m)');
legend ('x=(0.4./3)*t3.^3','x1=4*t4.^2-40*t4+133.33');

1
2
Published with MATLAB® R2019a

You might also like