]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/cimag.3
man*/: ffix (un-bracket tables)
[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 .TS
35 allbox;
36 lbx lb lb
37 l l l.
38 Interface Attribute Value
39 T{
40 .na
41 .nh
42 .BR cimag (),
43 .BR cimagf (),
44 .BR cimagl ()
45 T} Thread safety MT-Safe
46 .TE
47 .sp 1
48 .SH VERSIONS
49 GCC also supports __imag__.
50 That is a GNU extension.
51 .SH STANDARDS
52 C11, POSIX.1-2008.
53 .SH HISTORY
54 glibc 2.1.
55 C99, POSIX.1-2001.
56 .SH SEE ALSO
57 .BR cabs (3),
58 .BR creal (3),
59 .BR complex (7)