How to calculate
Use x = r cos θ and y = r sin θ. To go back to polar, use the distance from the origin and atan2(y, x).
Worked example
Use X 0 · Y 3. The result is ≈ (3, 90°).
Input notes
Angles are in degrees. The azimuth is undefined on the axis through the origin where x and y are both zero.
OpenStax cylindrical and spherical coordinate conventions