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 2013-06-21 "" "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 ");"
23 function returns the imaginary part of the complex number
29 z = creal(z) + I * cimag(z)
32 These functions first appeared in glibc in version 2.1.
34 .SS Multithreading (see pthreads(7))
40 functions are thread-safe.
44 gcc also supports __imag__.
45 That is a GNU extension.
51 This page is part of release 3.68 of the Linux
54 A description of the project,
55 information about reporting bugs,
56 and the latest version of this page,
58 \%http://www.kernel.org/doc/man\-pages/.