1CIMAG(3)                   Linux Programmer's Manual                  CIMAG(3)
2
3
4

NAME

6       cimag, cimagf, cimagl - get imaginary part of a complex number
7

SYNOPSIS

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

DESCRIPTION

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

VERSIONS

26       These functions first appeared in glibc in version 2.1.
27

CONFORMING TO

29       C99.
30

NOTES

32       gcc also supports __imag__.  That is a GNU extension.
33

SEE ALSO

35       cabs(3), creal(3), complex(7)
36

COLOPHON

38       This page is part of release 3.22 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)
Impressum