imag(X)/real(X)) is not convex and is not allowed, nor is atan of any CVX variable or expression.
imag(X)/real(X))
atan