HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)

c
creal(3M) creal(3M)
(HP Integrity Server Only)
NAME
creal(), crealf(), creall(), crealw(), crealq() - the real part of a complex value
SYNOPSIS
#include <complex.h>
double creal(double complex z);
float crealf(float complex z);
long double creall(long double complex z);
extended crealw(extended complex z);
quad crealq(quad complex z);
DESCRIPTION
These functions are available only for Integrity servers.
creal() returns the real part of z.
crealf() is a float complex version of creal(); it takes a float complex argument and
returns a float result.
creall() is a long double complex version of creal(); it takes a long double complex
argument and returns a long double result.
crealw() is an extended complex version of creal(); it takes an extended complex argu-
ment and returns an extended result.
crealq() is equivalent to creall() on HP-UX systems.
These functions raise no exceptions.
USAGE
To use these functions, compile with the default -Ae option. To use crealw()
or crealq(), compile
with the
-fpwidetypes option. Make sure your program includes <complex.h> . Link in the math
library by specifying -lm on the compiler or linker command line.
ERRORS
No errors are defined.
SEE ALSO
cimag(3M), complex(5).
STANDARDS CONFORMANCE
creal(), crealf(), creall() : ISO/IEC C99 (including Annex G, ‘‘IEC 60559-compatible complex
arithmetic’’)
HP-UX 11i Version 3: February 2007 1 Hewlett-Packard Company 223