Here is another way to get a RotationMatrix which transforms x to xp ( and vice versa)
rotM // MatrixForm RotationMatrix[Pi, (xx + xxp)/2] // MatrixForm RotationMatrix[Pi, (xx + xxp)/2].xx RotationMatrix[Pi, (xx + xxp)/2].xxp
For me works fine.
Thanks, but these are huge expressions. I need short simple answers in degrees. Can you convert these answers in degrees?