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:
+----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+----------------------------+-----------------------------+
|Interface Stability | Standard |
+----------------------------+-----------------------------+
|MT-Level | MT-Safe |
+----------------------------+-----------------------------+
complex.h(3HEAD), carg(3M), cimag(3M), conj(3M), cproj(3M),
attributes(7), standards(7)
SunOS 5.11 July 12, 2006 CREAL(3M)
NAME
creal, crealf, creall - complex real functions
SYNOPSIS
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);
DESCRIPTION
These functions compute the real part of z.
RETURN VALUES
These functions return the real part value.
ERRORS
No errors are defined.
USAGE
For a variable z of complex type:
z == creal(z) + cimag(z)*I
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+----------------------------+-----------------------------+
|Interface Stability | Standard |
+----------------------------+-----------------------------+
|MT-Level | MT-Safe |
+----------------------------+-----------------------------+
SEE ALSO
complex.h(3HEAD), carg(3M), cimag(3M), conj(3M), cproj(3M),
attributes(7), standards(7)
SunOS 5.11 July 12, 2006 CREAL(3M)