1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .TH CREAL 3 2008-08-11 "" "Linux Programmer's Manual"
6 creal, crealf, creall \- get real part of a complex number
8 .B #include <complex.h>
10 .BI "double creal(double complex " z );
12 .BI "float crealf(float complex " z );
14 .BI "long double creall(long double complex " z );
20 function returns the real part of the complex number
26 z = creal(z) + I * cimag(z)
29 These functions first appeared in glibc in version 2.1.
33 The gcc supports also __real__.
34 That is a GNU extension.