cimag.3m (2010 09)
c
cimag(3M) cimag(3M)
(HP Integrity Server Only)
NAME
cimag( ), cimagf( ), cimagl( ), cimagw( ), cimagq( ) - the imaginary part of a complex value
SYNOPSIS
#include <complex.h>
double cimag(double complex z);
float cimagf(float complex z);
long double cimagl(long double complex z);
extended cimagw(extended complex z);
quad cimagq(quad complex z);
DESCRIPTION
These functions are available only for Integrity servers.
cimag() returns the imaginary part of z (as a real).
cimagf() is a float complex version of
cimag(); it takes a float complex argument and
returns a
float result.
cimagl() is a long double complex version of cimag(); it takes a long double complex
argu-
ment and returns a
long double result.
cimagw() is an extended complex version of cimag(); it takes an extended complex argument
and returns an extended result.
cimagq() is equivalent to cimagl() on HP-UX systems.
These functions raise no floating-point exceptions.
USAGE
To use these functions, compile with the default
-Ae option. To use cimagw()
or cimagq(), 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
creal(3M), complex(5).
STANDARDS CONFORMANCE
cimag(), cimagf(), cimagl() : ISO/IEC C99 (including Annex G, ‘‘IEC 60559-compatible complex
arithmetic’’)
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1