1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
7 .TH CREAL 3 2008-08-11 "" "Linux Programmer's Manual"
9 creal, crealf, creall \- get real part of a complex number
11 .B #include <complex.h>
13 .BI "double creal(double complex " z );
15 .BI "float crealf(float complex " z );
17 .BI "long double creall(long double complex " z );
23 function returns the real part of the complex number
29 z = creal(z) + I * cimag(z)
32 These functions first appeared in glibc in version 2.1.
36 The gcc supports also __real__.
37 That is a GNU extension.