1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
7 .TH CIMAG 3 2015-04-19 "" "Linux Programmer's Manual"
9 cimag, cimagf, cimagl \- get imaginary part of a complex number
11 .B #include <complex.h>
13 .BI "double cimag(double complex " z ");"
15 .BI "float cimagf(float complex " z ");"
17 .BI "long double cimagl(long double complex " z ");"
21 These functions return the imaginary part of the complex number
27 z = creal(z) + I * cimag(z)
30 These functions first appeared in glibc in version 2.1.
32 For an explanation of the terms used in this section, see
38 Interface Attribute Value
43 T} Thread safety MT-Safe
46 C99, POSIX.1-2001, POSIX.1-2008.
48 gcc also supports __imag__.
49 That is a GNU extension.