OpenBSD manual page server

Manual Page Search Parameters

CARG(3) Library Functions Manual CARG(3)

carg, cargf, carglcomplex argument functions

#include <complex.h>

double
carg(double complex z);

float
cargf(float complex z);

long double
cargl(long double complex z);

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

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

cimag(3)

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

June 5, 2013 OpenBSD-current