Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

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(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Availability
system/library/math
MT-Level
MT-Safe
Standard

See Also

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