HP-UX Reference (11i v2 03/08) - 3 Library Functions A-M (vol 6)

c
cexp(3M) cexp(3M)
(Itanium(R)-based System Only)
NAME
cexp( ), cexpf( ), cexpl( ), cexpw( ), cexpq( ) - complex exponential functions
SYNOPSIS
#include <complex.h>
double complex cexp(double complex z);
float complex cexpf(float complex z);
long double complex cexpl(long double complex z);
extended complex cexpw(extended complex z);
quad complex cexpq(quad complex z);
DESCRIPTION
These functions are available only for Itanium-based systems.
cexp() returns the complex base-e exponential of z.
cexpf() is a float complex version of
cexp(); it takes a float complex argument and returns a
float complex result.
cexpl() is a long double complex version of cexp(); it takes a long double complex
argu-
ment and returns a
long double complex result.
cexpw() is an extended complex version of cexp(); it takes an extended complex argument
and returns an extended complex result.
cexpq() is equivalent to cexpl() on HP-UX systems.
USAGE
To use these functions, compile with the default
-Ae option. To use cexpw() or
cexpq(), 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.
RETURN VALUE
cexp(conj(z)) = conj(cexp(z)).
cexp(±0+i0) returns 1+i0.
cexp(x+iInf) returns NaN+iNaN and raises the invalid floating-point exception, for finite x.
cexp(x+iNaN) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite x.
cexp(+Inf+i0) returns +Inf+i0.
cexp(-Inf+iy) returns +0(cos(y)+isin(y)), for finite y.
cexp(+Inf+iy) returns +Inf(cos(y)+isin(y)), for finite nonzero y.
cexp(-Inf+iInf) returns ±0±i0 (where the signs of the real and imaginary parts of the result are
unspecified).
cexp(+Inf+iInf) returns ±Inf+iNaN and raises the invalid floating-point exception (where the sign of
the real part of the result is unspecified).
cexp(-Inf+iNaN) returns ±0±i0 (where the signs of the real and imaginary parts of the result are
unspecified).
cexp(+Inf+iNaN) returns ±Inf+iNaN (where the sign of the real part of the result is unspecified).
cexp(NaN+i0) returns NaN+i0.
cexp(NaN+iy) returns NaN+iNaN and optionally raises the invalid floating-point exception, for all
non-zero numbers y.
cexp(NaN+iNaN) returns NaN+iNaN.
ERRORS
No errors are defined.
HP-UX 11i Version 2: August 2003 1 Hewlett-Packard Company Section 389