1CIMAG(3) complex math routines 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 z = creal(z) + I*cimag(z).
22
24 gcc also supports __imag__. That is a GNU extension.
25
27 C99
28
30 cabs(3), creal(3), complex(7)
31
32
33
34 2002-07-28 CIMAG(3)