Theory For z=x+iyz=x+iyz=x+iy: ∣z∣=x2+y2|z|=\sqrt{x^2+y^2}∣z∣=x2+y2 Argument θ\thetaθ is chosen to match the quadrant of (x,y)(x,y)(x,y).