]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/creal.3
ctime.3: wfix
[thirdparty/man-pages.git] / man3 / creal.3
CommitLineData
fea681da 1.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2297bf0e 2.\"
38f20bb9 3.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
fea681da 4.\" Distributed under GPL
38f20bb9 5.\" %%%LICENSE_END
fea681da 6.\"
c73595c2 7.TH CREAL 3 2015-04-19 "" "Linux Programmer's Manual"
fea681da
MK
8.SH NAME
9creal, crealf, creall \- get real part of a complex number
10.SH SYNOPSIS
11.B #include <complex.h>
68e4db0a 12.PP
fea681da 13.BI "double creal(double complex " z );
d39541ec 14.br
fea681da 15.BI "float crealf(float complex " z );
d39541ec 16.br
fea681da 17.BI "long double creall(long double complex " z );
68e4db0a 18.PP
20c58d70 19Link with \fI\-lm\fP.
fea681da 20.SH DESCRIPTION
5600f73a 21These functions return the real part of the complex number
e5056894 22.IR z .
dd3568a1 23.PP
658670de 24One has:
207050fa 25.PP
658670de 26.nf
658670de
MK
27 z = creal(z) + I * cimag(z)
28.fi
f0d7ce1d
MK
29.SH VERSIONS
30These functions first appeared in glibc in version 2.1.
9f4658a7 31.SH ATTRIBUTES
d5b7e514
MK
32For an explanation of the terms used in this section, see
33.BR attributes (7).
34.TS
35allbox;
36lbw27 lb lb
37l l l.
38Interface Attribute Value
39T{
9f4658a7
PH
40.BR creal (),
41.BR crealf (),
9f4658a7 42.BR creall ()
d5b7e514
MK
43T} Thread safety MT-Safe
44.TE
47297adb 45.SH CONFORMING TO
9a74e018 46C99, POSIX.1-2001, POSIX.1-2008.
19c98696
MK
47.SH NOTES
48The gcc supports also __real__.
49That is a GNU extension.
47297adb 50.SH SEE ALSO
fea681da
MK
51.BR cabs (3),
52.BR cimag (3),
a8bda636 53.BR complex (7)