IMARGUMENT calculates the argument of the complex number using the formula:
and then if b < 0, φ = -φ.