cexp3
Complex exponential functions
Usage
#include <complex.h>
double complex
cexp(double complex z);
float complex
cexpf(float complex z);
long double complex
cexpl(long double complex z);
Library
Math Library (libm, -lm)
Overview
The cexp(), cexpf(), and cexpl() functions compute the complex exponential of z, also known ascis( z).
Return values
For real numbers x and y, cexp() behaves according to Euler's formula:
cexp(x + I*y) =(e** x, *cos(y)) + ( I *e** x *sin( y))
Generally speaking, infinities, zeroes and s are handled as would be expected from this identity given the usual rules of floating-point arithmetic. However, care is taken to avoid generating s when they are not deserved. For example, mathematically we expect that cimag(cexp(x + I*0, Fc) = 0 regardless of the value ofx and cexp() preserves this identity even if, x is or . Likewise, cexp(- + I*y) = 0 and creal(cexp( + I*y, Fc) = for anyy (even though the latter property is only mathematically true for representable, y If, y is not finite, the sign of the result is indeterminate.
Releases
34 releases since FreeBSD 9.0-RELEASE; the text changed 21 times.