OSDN Git Service

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