]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/cimag.3
586b33c5a9583544a65dedb3c308d68f76886f62
[thirdparty/man-pages.git] / man3 / cimag.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" SPDX-License-Identifier: GPL-1.0-or-later
4 .\"
5 .TH CIMAG 3 2021-03-22 "" "Linux Programmer's Manual"
6 .SH NAME
7 cimag, cimagf, cimagl \- get imaginary part of a complex number
8 .SH LIBRARY
9 Math library
10 .RI ( libm ", " \-lm )
11 .SH SYNOPSIS
12 .nf
13 .B #include <complex.h>
14 .PP
15 .BI "double cimag(double complex " z ");"
16 .BI "float cimagf(float complex " z ");"
17 .BI "long double cimagl(long double complex " z ");"
18 .fi
19 .SH DESCRIPTION
20 These functions return the imaginary part of the complex number
21 .IR z .
22 .PP
23 One has:
24 .PP
25 .nf
26 z = creal(z) + I * cimag(z)
27 .fi
28 .SH VERSIONS
29 These functions first appeared in glibc in version 2.1.
30 .SH ATTRIBUTES
31 For an explanation of the terms used in this section, see
32 .BR attributes (7).
33 .ad l
34 .nh
35 .TS
36 allbox;
37 lbx lb lb
38 l l l.
39 Interface Attribute Value
40 T{
41 .BR cimag (),
42 .BR cimagf (),
43 .BR cimagl ()
44 T} Thread safety MT-Safe
45 .TE
46 .hy
47 .ad
48 .sp 1
49 .SH CONFORMING TO
50 C99, POSIX.1-2001, POSIX.1-2008.
51 .SH NOTES
52 gcc also supports __imag__.
53 That is a GNU extension.
54 .SH SEE ALSO
55 .BR cabs (3),
56 .BR creal (3),
57 .BR complex (7)