]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/creal.3
Many pages: Fix style issues reported by `make lint-groff`
[thirdparty/man-pages.git] / man3 / creal.3
CommitLineData
fea681da 1.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2297bf0e 2.\"
95fb8859 3.\" SPDX-License-Identifier: GPL-1.0-or-later
fea681da 4.\"
1ae6b2c7 5.TH CREAL 3 2021-03-22 GNU "Linux Programmer's Manual"
fea681da
MK
6.SH NAME
7creal, crealf, creall \- get real part of a complex number
2af19291
AC
8.SH LIBRARY
9Math library
8fc3b2cf 10.RI ( libm ", " \-lm )
fea681da 11.SH SYNOPSIS
c7db92b9 12.nf
fea681da 13.B #include <complex.h>
68e4db0a 14.PP
fea681da 15.BI "double creal(double complex " z );
fea681da 16.BI "float crealf(float complex " z );
fea681da 17.BI "long double creall(long double complex " z );
c7db92b9 18.fi
fea681da 19.SH DESCRIPTION
5600f73a 20These functions return the real part of the complex number
e5056894 21.IR z .
dd3568a1 22.PP
658670de 23One has:
207050fa 24.PP
658670de 25.nf
658670de
MK
26 z = creal(z) + I * cimag(z)
27.fi
f0d7ce1d
MK
28.SH VERSIONS
29These functions first appeared in glibc in version 2.1.
9f4658a7 30.SH ATTRIBUTES
d5b7e514
MK
31For an explanation of the terms used in this section, see
32.BR attributes (7).
c466875e
MK
33.ad l
34.nh
d5b7e514
MK
35.TS
36allbox;
c466875e 37lbx lb lb
d5b7e514
MK
38l l l.
39Interface Attribute Value
40T{
9f4658a7
PH
41.BR creal (),
42.BR crealf (),
9f4658a7 43.BR creall ()
d5b7e514
MK
44T} Thread safety MT-Safe
45.TE
c466875e
MK
46.hy
47.ad
48.sp 1
47297adb 49.SH CONFORMING TO
9a74e018 50C99, POSIX.1-2001, POSIX.1-2008.
19c98696
MK
51.SH NOTES
52The gcc supports also __real__.
53That is a GNU extension.
47297adb 54.SH SEE ALSO
fea681da
MK
55.BR cabs (3),
56.BR cimag (3),
a8bda636 57.BR complex (7)