Debian Codegraph @

upstream/debian-trixie/man3/creal.3

raw
1 '\" t
2 .\" Copyright 2002 Walter Harms ([email protected])
3 .\"
4 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .\"
6 .TH creal 3 2024-05-02 "Linux man-pages 6.9.1"
7 .SH NAME
8 creal, crealf, creall \- get real 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 creal(double complex " z );
17 .BI "float crealf(float complex " z );
18 .BI "long double creall(long double complex " z );
19 .fi
20 .SH DESCRIPTION
21 These functions return the real part of the complex number
22 .IR z .
23 .P
24 One has:
25 .P
26 .nf
27 z = creal(z) + I * cimag(z)
28 .fi
29 .SH ATTRIBUTES
30 For an explanation of the terms used in this section, see
31 .BR attributes (7).
32 .TS
33 allbox;
34 lbx lb lb
35 l l l.
36 Interface Attribute Value
37 T{
38 .na
39 .nh
40 .BR creal (),
41 .BR crealf (),
42 .BR creall ()
43 T} Thread safety MT-Safe
44 .TE
45 .SH VERSIONS
46 GCC supports also __real__.
47 That is a GNU extension.
48 .SH STANDARDS
49 C11, POSIX.1-2008.
50 .SH HISTORY
51 glibc 2.1.
52 C99, POSIX.1-2001.
53 .SH SEE ALSO
54 .BR cabs (3),
55 .BR cimag (3),
56 .BR complex (7)