]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man/man3/cimag.3
man/, share/mk/: Move man*/ to man/
[thirdparty/man-pages.git] / man / man3 / cimag.3
CommitLineData
a1eaacb1 1'\" t
fea681da 2.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2297bf0e 3.\"
95fb8859 4.\" SPDX-License-Identifier: GPL-1.0-or-later
fea681da 5.\"
4c1c5274 6.TH cimag 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
7.SH NAME
8cimag, cimagf, cimagl \- get imaginary part of a complex number
2af19291
AC
9.SH LIBRARY
10Math library
8fc3b2cf 11.RI ( libm ", " \-lm )
fea681da 12.SH SYNOPSIS
c7db92b9 13.nf
fea681da 14.B #include <complex.h>
c6d039a3 15.P
1ae6b2c7
AC
16.BI "double cimag(double complex " z );
17.BI "float cimagf(float complex " z );
18.BI "long double cimagl(long double complex " z );
c7db92b9 19.fi
fea681da 20.SH DESCRIPTION
5600f73a 21These functions return the imaginary part of the complex number
3b8affde 22.IR z .
c6d039a3 23.P
3b8affde 24One has:
c6d039a3 25.P
1ae6b2c7
AC
26.in +4n
27.EX
28z = creal(z) + I * cimag(z)
29.EE
30.in
e3543fbb 31.SH ATTRIBUTES
2724812b
MK
32For an explanation of the terms used in this section, see
33.BR attributes (7).
34.TS
35allbox;
c466875e 36lbx lb lb
2724812b
MK
37l l l.
38Interface Attribute Value
39T{
9e54434e
BR
40.na
41.nh
e3543fbb
PH
42.BR cimag (),
43.BR cimagf (),
e3543fbb 44.BR cimagl ()
2724812b
MK
45T} Thread safety MT-Safe
46.TE
196224f7 47.SH VERSIONS
4131356c 48GCC also supports __imag__.
19c98696 49That is a GNU extension.
4131356c
AC
50.SH STANDARDS
51C11, POSIX.1-2008.
52.SH HISTORY
53glibc 2.1.
54C99, POSIX.1-2001.
47297adb 55.SH SEE ALSO
fea681da
MK
56.BR cabs (3),
57.BR creal (3),
a8bda636 58.BR complex (7)