Advertisement
Fhernd

manipular-matriz.py

Feb 13th, 2018
911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import numpy as np
  2.  
  3. matriz = np.array([[2.0, 3.0], [5.0, 7.0]])
  4.  
  5. # Inversión de la matriz:
  6. print(np.linalg.inv(matriz))
  7.  
  8. print('')
  9.  
  10. # Norma de la matriz:
  11. print(np.linalg.norm(matriz))
  12.  
  13. print('')
  14.  
  15. # Traza de la matriz:
  16. print(matriz.trace())
  17.  
  18. print('')
  19.  
  20. # Transpuesta de la matriz:
  21. print(matriz.transpose())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement