]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/cimag.3
04402b2eddffd3431ac5206e788737249901ea1d
[thirdparty/man-pages.git] / man3 / cimag.3
1 '\" t
2 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\"
4 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .\"
6 .TH cimag 3 (date) "Linux man-pages (unreleased)"
7 .SH NAME
8 cimag, cimagf, cimagl \- get imaginary part of a complex number
9 .SH LIBRARY
10 Math library
11 .RI ( libm ", " \-lm )
12 .SH SYNOPSIS
13 .nf
14 .B #include <complex.h>
15 .PP
16 .BI "double cimag(double complex " z );
17 .BI "float cimagf(float complex " z );
18 .BI "long double cimagl(long double complex " z );
19 .fi
20 .SH DESCRIPTION
21 These functions return the imaginary part of the complex number
22 .IR z .
23 .PP
24 One has:
25 .PP
26 .in +4n
27 .EX
28 z = creal(z) + I * cimag(z)
29 .EE
30 .in
31 .SH ATTRIBUTES
32 For an explanation of the terms used in this section, see
33 .BR attributes (7).
34 .ad l
35 .nh
36 .TS
37 allbox;
38 lbx 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 .hy
48 .ad
49 .sp 1
50 .SH VERSIONS
51 GCC also supports __imag__.
52 That is a GNU extension.
53 .SH STANDARDS
54 C11, POSIX.1-2008.
55 .SH HISTORY
56 glibc 2.1.
57 C99, POSIX.1-2001.
58 .SH SEE ALSO
59 .BR cabs (3),
60 .BR creal (3),
61 .BR complex (7)