Guest User

Untitled

a guest
Jul 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. y=60
  2. z=60
  3. UA=np.matrix([[1, 0, 0, 0], [0, math.cos(4*y), math.sin(4*y), 0], [0,
  4. math.sin(4*y), -(math.cos(4*y)), 0], [0, 0, 0, -1]])
  5. UB=np.matrix([[1, 0, 0, 0], [0, math.cos(4*z), math.sin(4*z), 0], [0,
  6. math.sin(4*z), -(math.cos(4*z)), 0], [0, 0, 0, -1]])
  7.  
  8. IV=np.matrix('1 ;1 ;0 ;0')
  9. X=np.matrix('1 ;0 ;1 ;0')
  10. print (X)
  11. one=UA*IV
  12.  
  13. print ("UAIV",one)
  14. two=UB*one
  15. print ("UBUAIV",two)
  16. UAT=np.transpose(UA.real)
  17. three=(UAT*two)
  18. print("UAT(UBUA(IV))=UB(IV)",three)
  19. a = np.squeeze(np.asarray(three))
  20. b = np.squeeze(np.asarray(IV))
  21. four=a*b
  22. print ("UB(IV)(X)",four)
  23. IVT=np.transpose(IV.real)
  24. c=np.squeeze(np.asarray(four))
  25. d=np.squeeze(np.asarray(IVT))
  26. five=c*d
  27. print ("IVT(UB(IV)(X))=UB(X)",five)
  28. UBT=np.transpose(UB.real)
  29. e=np.squeeze(np.asarray(UBT))
  30. f=np.squeeze(np.asarray(five))
  31. six=e*f
  32. print ("UBTUB(X)=X",six)
Add Comment
Please, Sign In to add comment