CEXP(3) Library Functions Manual CEXP(3)

cexpcomplex exponential function

#include <complex.h>

double complex
cexp(double complex z);

long double complex
cexpl(long double complex z);

float complex
cexpf(float complex z);

(z) returns the complex exponential of z.

cexp(conj(z)) = conj(cexp(z)), for all complex floating-point numbers z.

The conjugate symmetry of cexp() is used to abbreviate the specification of special values.

(±0 + 0i) returns 1 + 0i.

(x + inf i) returns NaN + NaN i, and raises the invalid flag, for finite x.

(x + NaN i) returns NaN + NaN i, for finite x.

(inf + 0i) returns inf + 0i.

For the following two cases, cis(y) denotes cos(y) + I*sin(y).

(-inf + yi) returns 0*cis(y), for finite y.

(inf + yi) returns inf*cis(y), for finite nonzero y.

(-inf + inf i) returns -0 + 0i.

(inf + inf i) returns -inf + NaN i, and raises the invalid flag.

(-inf + NaN i) returns -0 + 0i.

(inf + NaN i) returns -inf + NaN i.

(NaN + 0i) returns NaN + 0i.

(NaN + yi) returns NaN + NaN i for all nonzero numbers y.

(NaN + NaN i) returns NaN + NaN i.

exp(3) clog(3) complex(3)

The cexp() function conforms to ISO/IEC 9899:2011.

December 11, 2006 BSD 4