1CREAL(3)                   Linux Programmer's Manual                  CREAL(3)
2
3
4

NAME

6       creal, crealf, creall - get real part of a complex number
7

SYNOPSIS

9       #include <complex.h>
10
11       double creal(double complex z);
12       float crealf(float complex z);
13       long double creall(long double complex z);
14
15       Link with -lm.
16

DESCRIPTION

18       The creal() function returns the real part of the complex number z.
19
20       One has:
21
22           z = creal(z) + I * cimag(z)
23

VERSIONS

25       These functions first appeared in glibc in version 2.1.
26

CONFORMING TO

28       C99.
29

NOTES

31       The gcc supports also __real__.  That is a GNU extension.
32

SEE ALSO

34       cabs(3), cimag(3), complex(7)
35

COLOPHON

37       This  page  is  part of release 3.22 of the Linux man-pages project.  A
38       description of the project, and information about reporting  bugs,  can
39       be found at http://www.kernel.org/doc/man-pages/.
40
41
42
43                                  2008-08-11                          CREAL(3)
Impressum