Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Y =
  2.  
  3. (0, 0) -17.3611111111j
  4. (3, 0) 17.3611111111j
  5. (7, 1) 16j
  6. (1, 1) -16j
  7. (2, 2) -17.0648464164j
  8. (5, 2) 17.0648464164j
  9. (8, 3) (-1.36518771331+11.6040955631j)
  10. (3, 3) (3.30737896203-39.3088887261j)
  11. (0, 3) 17.3611111111j
  12. (4, 3) (-1.94219124871+10.5106820519j)
  13. (4, 4) (3.22420038714-15.8409270142j)
  14. (3, 4) (-1.94219124871+10.5106820519j)
  15. (5, 4) (-1.28200913842+5.58824496236j)
  16. (5, 5) (2.43709661931-32.1538618051j)
  17. (2, 5) 17.0648464164j
  18. (4, 5) (-1.28200913842+5.58824496236j)
  19. (6, 5) (-1.15508748089+9.78427042636j)
  20. (6, 6) (2.77220995414-23.3032490233j)
  21. (5, 6) (-1.15508748089+9.78427042636j)
  22. (7, 6) (-1.61712247325+13.6979785969j)
  23. (7, 7) (2.80472685254-35.4456131302j)
  24. (6, 7) (-1.61712247325+13.6979785969j)
  25. (8, 7) (-1.18760437929+5.97513453331j)
  26. (1, 7) 16j
  27. (8, 8) (2.5527920926-17.3382300964j)
  28. (7, 8) (-1.18760437929+5.97513453331j)
  29. (3, 8) (-1.36518771331+11.6040955631j)
  30.  
  31. x = np.array ([[-17.3611111111j, 0, 0, 17.3611111111j, 0, 0, 0, 0, 0],
  32. [0, -16j, 0, 0, 0, 0, 0, 16j, 0],
  33. [0, 0, -17.0648464164j, 0, 0, 17.0648464164j, 0, 0, 0],
  34. [17.3611111111j, 0, 0, (3.30737896203-39.3088887261j), (-1.94219124871+10.5106820519j), 0, 0, 0, (-1.36518771331+11.6040955631j)],
  35. [0, 0, 0, (-1.94219124871+10.5106820519j), (3.22420038714-15.8409270142j), (-1.28200913842+5.58824496236j), 0, 0, 0],
  36. [0, 0, 17.0648464164j, 0, (-1.28200913842+5.58824496236j), (2.43709661931-32.1538618051j), (-1.15508748089+9.78427042636j), 0, 0 ],
  37. [0, 0, 0, 0, 0 , (-1.15508748089+9.78427042636j), (2.77220995414-23.3032490233j), (-1.61712247325+13.6979785969j), 0 ],
  38. [0, 16j, 0, 0, 0, 0, (-1.61712247325+13.6979785969j), (2.80472685254-35.4456131302j), (-1.18760437929+5.97513453331j)],
  39. [0, 0, 0, (-1.36518771331+11.6040955631j), 0, 0, 0, (-1.18760437929+5.97513453331j), (2.5527920926-17.3382300964j)]])
  40.  
  41. import numpy as np
  42. x = np.zeros((9,9), dtype=complex)
  43.  
  44. for (i,j), v in Y.items():
  45. x[i,j] = v
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement