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.
Item | Description |
---|---|
z | Specifies the value to be computed. |
The carg, cargf, or cargl subroutine returns the value of the argument in the interval [-pi , +pi].