7.3.9.1 The carg functions

Synopsis

1

#include <complex.h>
double carg(double complex z);
float cargf(float complex z);
long double cargl(long double complex z);

Description

2

The carg functions compute the argument (also called phase angle) of z, with a branch cut along the negative real axis.

Returns

3

The carg functions return the value of the argument in the interval [-pi , +pi ].