CARG(3) | Library Functions Manual | CARG(3)

# NAME

`carg`, `cargf`, `cargl` — complex argument functions

# SYNOPSIS

Math Library (libm, -lm)
`#include <complex.h>`

double
`carg`(double complex z);

float
`cargf`(float complex z);

long double
`cargl`(long double complex z);

# DESCRIPTION

The `carg`(), `cargf`() and `cargl`() functions compute the argument (also called phase angle) of z, with a branch cut on the negative real axis.

# RETURN VALUES

The `carg`(), `cargf`() and `cargl`() functions return the argument in the interval [-Pi, Pi].

# SEE ALSO

cimag(3)

# STANDARDS

The `carg`(), `cargf`() and `cargl`() functions conform to ISO/IEC 9899:1999 (“ISO C99”).

June 7, 2025 | Debian