Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: July 2017
 
 

creall(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 Also

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