Debian Codegraph @

upstream/debian-unstable/man3/creal.3

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