1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .TH CIMAG 3 2002-07-28 "" "complex math routines"
6 cimag, cimagf, cimagl \- get imaginary part of a complex number
8 .B #include <complex.h>
10 .BI "double cimag(double complex " z ");"
12 .BI "float cimagf(float complex " z ");"
14 .BI "long double cimagl(long double complex " z ");"
18 The cimag() function returns the imaginary part of the complex number z.
20 One has z = creal(z) + I*cimag(z).
22 gcc also supports __imag__. That is a GNU extension.