Returns the complex argument value.
#include <complex.h> double carg (z) double complex z; float cargf (z) float complex z; long double cargl (z) long double complex z;
The carg, cargf, or cargl subroutine computes the argument (also called phase angle) of the z parameter, with a branch cut along the negative real axis.
z | Specifies the value to be computed. |
The carg, cargf, or cargl subroutine returns the value of the argument in the interval [-pi , +pi].
The cimag, cimagf, or cimagl Subroutine, conj, conjf, or conjl Subroutine, and cproj, cprojf, or cprojl Subroutine.