NAME
carg(), cargf() — complex argument (also called phase angle) functions
SYNOPSIS
#include <complex.h>
double carg(double complex z);
float cargf(float complex z);
DESCRIPTION
These functions are available only for IA-64.
carg()
returns the
complex argument of
z
in the interval [-pi,+pi].
cargf()
is a
float
complex
version of
carg();
it takes a
float
complex
argument and returns a
float
result.
USAGE
To use these functions,
compile with the default
-Ae
option.
Make sure your program includes
<complex.h>.
Link in the math library by specifying
-lm
on the compiler or linker command line.
RETURN VALUES
carg(z)
returns the same values and raises the same exceptions as
atan2(cimag(z),creal(z)).
ERRORS
No errors are defined.
STANDARDS CONFORMANCE
carg(),
cargf():
ISO/IEC C99 (including Annex G,
IEC 60559-compatible complex arithmetic)