Advertisement
JoelSjogren

Untitled

Nov 11th, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. box% sage
  2. ┌────────────────────────────────────────────────────────────────────┐
  3. │ SageMath version 9.2, Release Date: 2020-10-24 │
  4. │ Using Python 3.8.6. Type "help()" for help. │
  5. └────────────────────────────────────────────────────────────────────┘
  6. sage: A = matrix([[0,0,-3],[1,0,6],[0,1,-3]])
  7. sage: A
  8. [ 0 0 -3]
  9. [ 1 0 6]
  10. [ 0 1 -3]
  11. sage: A.characteristic_polynomial()
  12. x^3 + 3*x^2 - 6*x + 3
  13. sage: (1/A^2)
  14. [ 3 2 1]
  15. [-7/3 -1 0]
  16. [-2/3 -1/3 0]
  17. sage: (1/A^2).characteristic_polynomial()
  18. x^3 - 2*x^2 + 7/3*x - 1/9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement