1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .TH CIMAG 3 2008-08-11 "" "Linux Programmer's Manual"
6 cimag, cimagf, cimagl \- get imaginary part of a complex number
8 .B #include <complex.h>
10 .BI "double cimag(double complex " z ");"
12 .BI "float cimagf(float complex " z ");"
14 .BI "long double cimagl(long double complex " z ");"
20 function returns the imaginary part of the complex number
26 z = creal(z) + I * cimag(z)
29 These functions first appeared in glibc in version 2.1.
33 gcc also supports __imag__.
34 That is a GNU extension.