| CIMAG(3) | Library Functions Manual | CIMAG(3) |
cimag, cimagf,
cimagl — compute the
imaginary part of a complex number
Math Library (libm, -lm)
#include <complex.h>
double
cimag(double
complex z);
float
cimagf(float
complex z);
long double
cimagl(long
double complex z);
The
cimag(),
cimagf()
and
cimagl()
functions compute the imaginary part of z.
The cimag(),
cimagf() and cimagl()
functions return the imaginary part of the complex number
z as a real number.
The cimag(),
cimagf() and cimagl()
functions conform to ISO/IEC 9899:1999
(“ISO C99”).
| June 7, 2025 | Debian |