PRACTICA DIRIGIDA DE MÉTODOS NUMÉRICOS CARITA FELIZ >> hold off;hold on;t=0:2*pi/49:2*pi;x=cos(t);y=sin(t);plot(x,y);axis equal;x1=0.1*cos(t)-0.3;y1=0.1*sin(t)+0.2;... plot(x1,y1);axis equal;fill(x1,y1,'k');x2=0.1*cos(t)+0.3;y2=0.1*sin(t)+0.2;... x2=0.1*cos(t)+0.3;y2=0.1*sin(t)+0.2;plot(x2,y2);axis equal;fill(x2,y2,'k');... t=4*pi/3:pi/147:5*pi/3;x3=0.6*cos(t);y3=0.6*sin(t);plot(x3,y3);axis equal;hold off;axis off
LA SUMA DE LOS PRIMEROS NUMEROS NATURALES n=input('ingrese numero de terminos:');fprintf('la suma de los %g primeros terminos es :%4.0f\n',n,0.5*n*(n+1)) i
TRIANGULO INSCRITO t=0:2*pi/39:2*pi;x=2*cos(t);y=2*sin(t);plot(x,y);axis equal;... X=[sqrt(3) 0 -sqrt(3) sqrt(3)];Y=[-1 2 -1 -1];line(X,Y);hold on; t=0:2*pi/39:2*pi;x=cos(t);y=sin(t);plot(x,y);axis equal