10
a) >> x=-2.5:0.01:3; >> f=3*x.^3-x.^2-10*x; >> g=-x.^2+2*x; >> plot(x,f,'r',x,g,'g') >> grid on b) >> x=-1:0.01:3; >> f=x-1; >> g=(x-1).^3;

Lista de Ejercicios (1)

Embed Size (px)

DESCRIPTION

sdsdsd

Citation preview

a) >> x=-2.5:0.01:3;>> f=3*x.^3-x.^2-10*x;>> g=-x.^2+2*x;>> plot(x,f,'r',x,g,'g') >> grid on

b) >> x=-1:0.01:3;>> f=x-1;>> g=(x-1).^3;>> plot(x,f,'r',x,g,'g')>> grid on

>> x=-1:0.01:3;>> f=x-1;>> g=(x-1).^3;>> plot(x,f,'r',x,g,'g')>> grid on>> t=0:pi/100:2*pi;>> r1=3+5*cos(t);>> subplot(2,2,1)>> polar(t,r1,'r')>> grid on>> r2=3-5*cos(t);>> subplot(2,2,2)>> polar(t,r2,'k')>> grid on>> r3=3+5*sin(t);>> subplot(2,2,3)>> polar(t,r3,'c')>> grid on>> r4=3-5*sin(t);>> subplot(2,2,4)>> polar(t,r4,'m')>> grid on

>> x=-4:0.01:-2;>> y=x+3;>> plot(x,y,'r','linewidth',1)>> hold on>> x=-2:0.01:2;>> y=1;>> plot(x,y,'g','linewidth',3)>> hold on>> x=2:0.01:4;>> y=x-1;>> plot(x,y,'c','linewidth',5)>> grid on

a)

>> x=-5:0.01:4;>> f=x.^4+3*x.^3-8*x.^2-10;>> plot(x,f,'c','linewidth',5)>> grid on>> xlabel('Eje x')>> ylabel('Eje y')>> text(-2.5,15,'\bf\fontsize{15}Funcin de Grado 4')

b)

>> x=-1:0.01:7;>> g=0.5*x.^3-5*x.^2+4*x-8;>> plot(x,g,'k','linewidth',1)>> grid on>> xlabel('Eje x')>> ylabel('Eje y')>> text(2.5,-19.5,'\fontsize{15}Funcin de Grado 3')

c)

>> x=0:pi/100:2*pi;>> h=2*sin(x)-cos(2*x);>> plot(x,h,'m','linewidth',9)>> grid on>> xlabel('Eje x')>> ylabel('Eje y')>> text(3,1,'\bf\fontsize{15}Curva Senoidal')

d)

>> x=-4:0.01:4;>> i=5+(abs(3-x.^2));>> plot(x,i,'g','linewidth',12)>> grid on>> xlabel('Eje x')>> ylabel('Eje y')>> text(-0.3,9,'\bf\fontsize{15}"W"')

e)>> x=-1:0.01:10;>> j=log(x.^2+x+1)+(x-5).^3;>> plot(x,j,'r','linewidth',16)>> grid on>> xlabel('Eje x')>> ylabel('Eje y')>> text(1,35,'\bf\fontsize{15}Curva logaritmica')