2 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
4 .\" SPDX-License-Identifier: GPL-1.0-or-later
6 .TH cimag 3 (date) "Linux man-pages (unreleased)"
8 cimag, cimagf, cimagl \- get imaginary part of a complex number
11 .RI ( libm ", " \-lm )
14 .B #include <complex.h>
16 .BI "double cimag(double complex " z );
17 .BI "float cimagf(float complex " z );
18 .BI "long double cimagl(long double complex " z );
21 These functions return the imaginary part of the complex number
28 z = creal(z) + I * cimag(z)
32 For an explanation of the terms used in this section, see
38 Interface Attribute Value
45 T} Thread safety MT-Safe
49 GCC also supports __imag__.
50 That is a GNU extension.