Blame man3/creal.3

Packit 7cfc04
.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
Packit 7cfc04
.\"
Packit 7cfc04
.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
Packit 7cfc04
.\" Distributed under GPL
Packit 7cfc04
.\" %%%LICENSE_END
Packit 7cfc04
.\"
Packit 7cfc04
.TH CREAL 3 2015-04-19 "" "Linux Programmer's Manual"
Packit 7cfc04
.SH NAME
Packit 7cfc04
creal, crealf, creall \- get real part of a complex number
Packit 7cfc04
.SH SYNOPSIS
Packit 7cfc04
.B #include <complex.h>
Packit 7cfc04
.PP
Packit 7cfc04
.BI "double creal(double complex " z );
Packit 7cfc04
.br
Packit 7cfc04
.BI "float crealf(float complex " z );
Packit 7cfc04
.br
Packit 7cfc04
.BI "long double creall(long double complex " z );
Packit 7cfc04
.PP
Packit 7cfc04
Link with \fI\-lm\fP.
Packit 7cfc04
.SH DESCRIPTION
Packit 7cfc04
These functions return the real part of the complex number
Packit 7cfc04
.IR z .
Packit 7cfc04
.PP
Packit 7cfc04
One has:
Packit 7cfc04
.PP
Packit 7cfc04
.nf
Packit 7cfc04
    z = creal(z) + I * cimag(z)
Packit 7cfc04
.fi
Packit 7cfc04
.SH VERSIONS
Packit 7cfc04
These functions first appeared in glibc in version 2.1.
Packit 7cfc04
.SH ATTRIBUTES
Packit 7cfc04
For an explanation of the terms used in this section, see
Packit 7cfc04
.BR attributes (7).
Packit 7cfc04
.TS
Packit 7cfc04
allbox;
Packit 7cfc04
lbw27 lb lb
Packit 7cfc04
l l l.
Packit 7cfc04
Interface	Attribute	Value
Packit 7cfc04
T{
Packit 7cfc04
.BR creal (),
Packit 7cfc04
.BR crealf (),
Packit 7cfc04
.BR creall ()
Packit 7cfc04
T}	Thread safety	MT-Safe
Packit 7cfc04
.TE
Packit 7cfc04
.SH CONFORMING TO
Packit 7cfc04
C99, POSIX.1-2001, POSIX.1-2008.
Packit 7cfc04
.SH NOTES
Packit 7cfc04
The gcc supports also __real__.
Packit 7cfc04
That is a GNU extension.
Packit 7cfc04
.SH SEE ALSO
Packit 7cfc04
.BR cabs (3),
Packit 7cfc04
.BR cimag (3),
Packit 7cfc04
.BR complex (7)
Packit 7cfc04
.SH COLOPHON
Packit 7cfc04
This page is part of release 4.15 of the Linux
Packit 7cfc04
.I man-pages
Packit 7cfc04
project.
Packit 7cfc04
A description of the project,
Packit 7cfc04
information about reporting bugs,
Packit 7cfc04
and the latest version of this page,
Packit 7cfc04
can be found at
Packit 7cfc04
\%https://www.kernel.org/doc/man\-pages/.