Examen Matlab

Páginas: 3 (506 palabras) Publicado: 28 de octubre de 2012
Exámen Resuelto




2.



>> syms x

>> f=(x^2+x-2)/(x^3+6)



f =



(x^2 + x - 2)/(x^3 + 6)



>> fx=diff(f,x)



fx =



(2*x + 1)/(x^3 + 6) - (3*x^2*(x^2 + x -2))/(x^3 + 6)^2



f3x=diff(f,x,3)



f3x =



(54*x^4*(2*x + 1))/(x^3 + 6)^3 - (18*x^2)/(x^3 + 6)^2 - (6*(x^2 + x - 2))/(x^3 + 6)^2 + (108*x^3*(x^2 + x - 2))/(x^3 + 6)^3 - (162*x^6*(x^2 +x - 2))/(x^3 + 6)^4 - (18*x*(2*x + 1))/(x^3 + 6)^2



>> Subs(fx,5)



ans =



-3.8401e-002



>> Subs(f3x,5)



ans =



-1.0803e-003





3.




syms y>> f=(sin(y)+5*y^2)




f =




sin(y) + 5*y^2

>> int(f,0,pi)




ans =




(5*pi^3)/3 + 2




4.




>> AR=zeros(6,6)




AR =0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 0 0 0 0

0 0 00 0 0

0 0 0 0 0 0







>> AR(:,3:4)=ones(6,2)






AR =




0 0 1 1 0 0

0 0 1 10 0

1 1 1 1 1 1

1 1 1 1 1 1

0 0 1 1 0 0

0 0 1 1 0 0




5.A=[2 1 4; 2 1 8; 2 -1 3]




A =




2 1 4

2 1 8

2 -1 3




inv(A)




ans =6.8750e-001 -4.3750e-001 2.5000e-001

6.2500e-001 -1.2500e-001 -5.0000e-001

-2.5000e-001 2.5000e-001 0



6.

>> A=[5 2 4; 1 7 -3; 2 -10 0]A =




5 2 4

1 7 -3

2 -10 0




>> B=[11 5 -3; 0 -12 4; 2 6 1]




B =




11 5...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Examen Parcial 1 Matlab
  • Examen de matlab
  • matlab
  • matlab
  • Matlab
  • Matlab
  • matlab
  • MATLAB

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS