cargf, carg, cargl
From cppreference.com
Defined in header <complex.h>
|
||
float cargf( float complex z ); |
(1) | (since C99) |
double carg( double complex z ); |
(2) | (since C99) |
long double cargl( long double complex z ); |
(3) | (since C99) |
Defined in header <tgmath.h>
|
||
#define carg( z ) |
(4) | (since C99) |
1-3) Computes the argument (also called phase angle) of
z
, with a branch cut along the negative real axis.4) Type-generic macro: if
z
has type long double complex, long double imaginary, or long double, cargl
is called. If z
has type float complex, float imaginary, or float, cargf
is called. If z
has type double complex, double imaginary, double, or any integer type, carg
is called.Parameters
z | - | complex argument |
Return value
If no errors occur, returns the phase angle of z
in the interval (−π; π).
Errors and special cases are handled as if the function is implemented as atan2(cimag(z), creal(z))