CREAL(3M) Mathematical Library Functions CREAL(3M)

creal, crealf, creall - complex real functions

c99 [ flag... ] file... -lm [ library... ]
#include <complex.h>
double creal(double complex z);

float crealf(float complex z);

long double creall(long double complex z);

These functions compute the real part of z.

These functions return the real part value.

No errors are defined.

For a variable z of complex type:

z == creal(z) + cimag(z)*I

See attributes(7) for descriptions of the following attributes:

Interface Stability Standard
MT-Level MT-Safe

complex.h(3HEAD), carg(3M), cimag(3M), conj(3M), cproj(3M), attributes(7), standards(7)

July 12, 2006 SunOS 5.11