1CIMAG(3) Linux Programmer's Manual CIMAG(3)
2
3
4
6 cimag, cimagf, cimagl - get imaginary part of a complex number
7
9 #include <complex.h>
10
11 double cimag(double complex z);
12 float cimagf(float complex z);
13 long double cimagl(long double complex z);
14
15 Link with -lm.
16
18 The cimag() function returns the imaginary part of the complex number
19 z.
20
21 One has:
22
23 z = creal(z) + I * cimag(z)
24
26 These functions first appeared in glibc in version 2.1.
27
29 C99.
30
32 gcc also supports __imag__. That is a GNU extension.
33
35 cabs(3), creal(3), complex(7)
36
38 This page is part of release 3.25 of the Linux man-pages project. A
39 description of the project, and information about reporting bugs, can
40 be found at http://www.kernel.org/doc/man-pages/.
41
42
43
44 2008-08-11 CIMAG(3)