Writing complex numbers in polar form