Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- from numpy import linalg
- matriz = np.matrix([[-2, 3, -5], [2, 3, 5], [7, 11, 13]])
- print(matriz)
- print('')
- # Transpuesta:
- print(matriz.T)
- print('')
- # Inversa:
- print(linalg.inv(matriz))
- print('')
- # Producto por vector:
- vector = np.matrix([[2], [3], [5]])
- print(vector)
- print(matriz * vector)
- print('')
- # Determinante:
- print(linalg.det(matriz))
- print('')
- # Valores propios:
- print(linalg.eigvals(matriz))
- print('')
- # Solución de sistemas de ecuaciones:
- print(linalg.solve(matriz, vector))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement