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

ATTRIBUTES

29   Multithreading (see pthreads(7))
30       The cimag(), cimagf(), and cimagl() functions are thread-safe.
31

CONFORMING TO

33       C99.
34

NOTES

36       gcc also supports __imag__.  That is a GNU extension.
37

SEE ALSO

39       cabs(3), creal(3), complex(7)
40

COLOPHON

42       This page is part of release 3.53 of the Linux  man-pages  project.   A
43       description  of  the project, and information about reporting bugs, can
44       be found at http://www.kernel.org/doc/man-pages/.
45
46
47
48                                  2013-06-21                          CIMAG(3)
Impressum