]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/cimag.3
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
[thirdparty/man-pages.git] / man3 / cimag.3
CommitLineData
fea681da 1.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2297bf0e 2.\"
38f20bb9 3.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
fea681da 4.\" Distributed under GPL
38f20bb9 5.\" %%%LICENSE_END
fea681da 6.\"
c73595c2 7.TH CIMAG 3 2015-04-19 "" "Linux Programmer's Manual"
fea681da
MK
8.SH NAME
9cimag, cimagf, cimagl \- get imaginary part of a complex number
10.SH SYNOPSIS
11.B #include <complex.h>
68e4db0a 12.PP
c13182ef 13.BI "double cimag(double complex " z ");"
d39541ec 14.br
fea681da 15.BI "float cimagf(float complex " z ");"
d39541ec 16.br
fea681da 17.BI "long double cimagl(long double complex " z ");"
68e4db0a 18.PP
20c58d70 19Link with \fI\-lm\fP.
fea681da 20.SH DESCRIPTION
5600f73a 21These functions return the imaginary part of the complex number
3b8affde 22.IR z .
dd3568a1 23.PP
3b8affde 24One has:
207050fa 25.PP
3b8affde 26.nf
3b8affde 27 z = creal(z) + I * cimag(z)
494fc522 28.fi
f0d7ce1d
MK
29.SH VERSIONS
30These functions first appeared in glibc in version 2.1.
e3543fbb 31.SH ATTRIBUTES
2724812b
MK
32For an explanation of the terms used in this section, see
33.BR attributes (7).
34.TS
35allbox;
36lbw27 lb lb
37l l l.
38Interface Attribute Value
39T{
e3543fbb
PH
40.BR cimag (),
41.BR cimagf (),
e3543fbb 42.BR cimagl ()
2724812b
MK
43T} Thread safety MT-Safe
44.TE
47297adb 45.SH CONFORMING TO
9a74e018 46C99, POSIX.1-2001, POSIX.1-2008.
19c98696
MK
47.SH NOTES
48gcc also supports __imag__.
49That is a GNU extension.
47297adb 50.SH SEE ALSO
fea681da
MK
51.BR cabs (3),
52.BR creal (3),
a8bda636 53.BR complex (7)