]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/cimag.3
acos.3, acosh.3, asin.3, asinh.3, atan.3, atan2.3, atanh.3, cabs.3, cacos.3, cacosh...
[thirdparty/man-pages.git] / man3 / cimag.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
5 .\" %%%LICENSE_END
6 .\"
7 .TH CIMAG 3 2015-03-02 "" "Linux Programmer's Manual"
8 .SH NAME
9 cimag, cimagf, cimagl \- get imaginary part of a complex number
10 .SH SYNOPSIS
11 .B #include <complex.h>
12 .sp
13 .BI "double cimag(double complex " z ");"
14 .br
15 .BI "float cimagf(float complex " z ");"
16 .br
17 .BI "long double cimagl(long double complex " z ");"
18 .sp
19 Link with \fI\-lm\fP.
20 .SH DESCRIPTION
21 The
22 .BR cimag ()
23 function returns the imaginary part of the complex number
24 .IR z .
25 .LP
26 One has:
27 .nf
28
29 z = creal(z) + I * cimag(z)
30 .fi
31 .SH VERSIONS
32 These functions first appeared in glibc in version 2.1.
33 .SH ATTRIBUTES
34 For an explanation of the terms used in this section, see
35 .BR attributes (7).
36 .TS
37 allbox;
38 lbw27 lb lb
39 l l l.
40 Interface Attribute Value
41 T{
42 .BR cimag (),
43 .BR cimagf (),
44 .BR cimagl ()
45 T} Thread safety MT-Safe
46 .TE
47 .SH CONFORMING TO
48 C99, POSIX.1-2001, POSIX.1-2008.
49 .SH NOTES
50 gcc also supports __imag__.
51 That is a GNU extension.
52 .SH SEE ALSO
53 .BR cabs (3),
54 .BR creal (3),
55 .BR complex (7)