The C++ Complex Library has a function called arg(). It returns the phase angle (or angular component) of the complex number x, expressed in radians. Documentation here: https: