1CIMAG(3)                     complex math routines                    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 z = creal(z) + I*cimag(z).
22

NOTE

24       gcc also supports __imag__. That is a GNU extension.
25

CONFORMING TO

27       C99
28

SEE ALSO

30       cabs(3), creal(3), complex(7)
31
32
33
34                                  2002-07-28                          CIMAG(3)
Impressum