creal(3M) Mathematical Library Functions 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(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Committed │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │MT-Safe │
├─────────────────────────────┼─────────────────────────────┤
│Standard │See standards(5). │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOcarg(3M), cimag(3M), complex.h(3HEAD), conj(3M), cproj(3M),
attributes(5), standards(5)SunOS 5.11 12 Jul 2006 creal(3M)