change polar->cartesian

Rectified part of the polar->cartesian algorithm