Если z = x + i * y, то r = |z| = x^2 + y^2
cos fi = x/r, sin fi = y/r, tg fi = y/x
Тогда
z = |z| * (cos fi + i * sin fi)