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       These functions return the imaginary part of the complex number z.
19
20       One has:
21
22           z = creal(z) + I * cimag(z)
23

VERSIONS

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

ATTRIBUTES

28       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
29       tributes(7).
30
31       ┌────────────────────────────────────────────┬───────────────┬─────────┐
32Interface                                   Attribute     Value   
33       ├────────────────────────────────────────────┼───────────────┼─────────┤
34cimag(), cimagf(), cimagl()                 │ Thread safety │ MT-Safe │
35       └────────────────────────────────────────────┴───────────────┴─────────┘
36

CONFORMING TO

38       C99, POSIX.1-2001, POSIX.1-2008.
39

NOTES

41       gcc also supports __imag__.  That is a GNU extension.
42

SEE ALSO

44       cabs(3), creal(3), complex(7)
45

COLOPHON

47       This page is part of release 5.13 of the Linux  man-pages  project.   A
48       description  of  the project, information about reporting bugs, and the
49       latest    version    of    this    page,    can     be     found     at
50       https://www.kernel.org/doc/man-pages/.
51
52
53
54                                  2021-03-22                          CIMAG(3)
Impressum