Tributacion

Páginas: 2 (359 palabras) Publicado: 29 de mayo de 2010
CUADERNO DIGITAL DE PROGRAMACION

OPERACIÓN ENTRE DOS NUEMROS

a=input('A=');
b=input('B=');
c=a/b;
fprintf('c=%5.2f',c);

SUMA DE VECTORES

n=input('ingrese ladimension n=');
for(i=1:n)
for(j=1:n)
a(i,j)=input('A(i,j)');
end
end
fprintf('\n ingrese la matriz B\n');
for i=1:n
for j=1:nb(i,j)=input('B(i,j)=');
end
end
%calculos
for i=1:n
for j=1:n
c(i,j)=a(i,j)+b(i,j);
end
end
%salida
for i=1:n
for j=1:nfprintf('%5.2f\t',c(i,j));
end
fprintf('\n');
end

SUMA DE MATRICES

n=input('ingrese la dimension n=');
for(i=1:n)
for(j=1:n)
a(i,j)=input('A(i,j)');
end
endfprintf('\n ingrese la matriz B\n');
for i=1:n
for j=1:n
b(i,j)=input('B(i,j)=');
end
end
%calculos
for i=1:n
for j=1:nc(i,j)=a(i,j)+b(i,j);
end
end
%salida
for i=1:n
for j=1:n
fprintf('%5.2f\t',c(i,j));
end
fprintf('\n');
end

GRAFICOS

>> x=-2.9:0.2:2.9;
>>bar(x,exp(-x.*x));

>> x=0:0.25:10;
>> stairs(x,sin(x));

>> x=-2:0.1:2;
>> y=erf(x);
>> e=rand(size(x))/10;
>> errorbar(x,y,e);

t=0:0.01:2*pi;
>> polar(t,abs(sin(2*t)));>> z=peaks(25);
>> mesh(z);
>> colormap(har);

>> z=peaks(25);
>> surf(z);
>> colormap(jet);

>> z=peaks(25);
>> surf(z);
>> shading interp;
>> colormap(pink);>> z=peaks(25);
>> contour(z,16);
>> colormap(hsv);

[pic] polinomios

syms a
f=2*a^3-5;
g=a^2+2;
h=a^3-5*a^2+6*a;
w=f+g+h
pretty(w)

derivadaf=x^4-cosx+e^-x^2

symsx
diff(x^4-cos(x)+exp(-x^2))

integral

symsx
f=tan(X)-x^2;
int(f,x)

syms x a b
f=exp(x)-x^2;
int(f,a,x,b)

ec. diferenciales

dsolve(‘Dy=5*y’)
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Tributacion
  • Tributacion
  • tributacion
  • TRIBUTACION
  • tributacion
  • Tributación
  • tributacion
  • tributacion

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS