conjf, conj, conjl
From cppreference.com
Defined in header <complex.h>
|
||
(1) | (since C99) | |
(2) | (since C99) | |
(3) | (since C99) | |
Defined in header <tgmath.h>
|
||
#define conj( z ) |
(4) | (since C99) |
4) Type-generic macro: if
z
has type long double complex, long double imaginary, or long double, conjl
is called. If z
has type float complex, float imaginary, or float, conjf
is called. If z
has type double complex, double imaginary, double, or any integer type, conj
is called.Parameters
z | - | complex argument |
Return value
The complex conjugate of z
.
Notes
On C99 implementations that do not implement I as _Imaginary_I, conj
may be used to obtain complex numbers with negative zero imaginary part. In C11, the macro CMPLX is used for that purpose.