OSDN Git Service

(split) LDP: Update original to LDP v3.50.
[linuxjm/LDP_man-pages.git] / original / man3 / creal.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
5 .\" %%%LICENSE_END
6 .\"
7 .TH CREAL 3 2008-08-11 "" "Linux Programmer's Manual"
8 .SH NAME
9 creal, crealf, creall \- get real part of a complex number
10 .SH SYNOPSIS
11 .B #include <complex.h>
12 .sp
13 .BI "double creal(double complex " z );
14 .br
15 .BI "float crealf(float complex " z );
16 .br
17 .BI "long double creall(long double complex " z );
18 .sp
19 Link with \fI\-lm\fP.
20 .SH DESCRIPTION
21 The
22 .BR creal ()
23 function returns the real part of the complex number
24 .IR z .
25 .LP
26 One has:
27 .nf
28
29     z = creal(z) + I * cimag(z)
30 .fi
31 .SH VERSIONS
32 These functions first appeared in glibc in version 2.1.
33 .SH CONFORMING TO
34 C99.
35 .SH NOTES
36 The gcc supports also __real__.
37 That is a GNU extension.
38 .SH SEE ALSO
39 .BR cabs (3),
40 .BR cimag (3),
41 .BR complex (7)