Debian Codegraph @

upstream/debian-trixie/man3/cimag.3

raw
1 '\" t
2 .\" Copyright 2002 Walter Harms ([email protected])
3 .\"
4 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .\"
6 .TH cimag 3 2024-05-02 "Linux man-pages 6.9.1"
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 .P
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 .P
24 One has:
25 .P
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 .SH VERSIONS
48 GCC also supports __imag__.
49 That is a GNU extension.
50 .SH STANDARDS
51 C11, POSIX.1-2008.
52 .SH HISTORY
53 glibc 2.1.
54 C99, POSIX.1-2001.
55 .SH SEE ALSO
56 .BR cabs (3),
57 .BR creal (3),
58 .BR complex (7)