BGE math question. Can't explain answers

Can someone explain this;

python code in game engine


     angleAllow = 0.0
     xxx = math.cos(angleAllow)     yyy = math.sin(angleAllow)
     print("Angle = ",angleAllow*180.0/phi)
     print("cosine ",xxx," sine ",yyy)
     print("heading ",heading[0],heading[1])  
     newxxx = xxx*heading[0]
     newyyy = yyy*heading[1]  
     print("Result ",newxxx,newyyy)

the results are:


Attachments


Sorry. I see the problem,