1CEXP(3)                    Linux Programmer's Manual                   CEXP(3)
2
3
4

NAME

6       cexp, cexpf, cexpl - complex exponential function
7

SYNOPSIS

9       #include <complex.h>
10
11       double complex cexp(double complex z);
12       float complex cexpf(float complex z);
13       long double complex cexpl(long double complex z);
14
15       Link with -lm.
16

DESCRIPTION

18       These  functions  calculate  e  (2.71828...,  the base of natural loga‐
19       rithms) raised to the power of z.
20
21       One has:
22
23           cexp(I * z) = ccos(z) + I * csin(z)
24

VERSIONS

26       These functions first appeared in glibc in version 2.1.
27

ATTRIBUTES

29       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
30       tributes(7).
31
32       ┌────────────────────────────────────────────┬───────────────┬─────────┐
33Interface                                   Attribute     Value   
34       ├────────────────────────────────────────────┼───────────────┼─────────┤
35cexp(), cexpf(), cexpl()                    │ Thread safety │ MT-Safe │
36       └────────────────────────────────────────────┴───────────────┴─────────┘
37

CONFORMING TO

39       C99, POSIX.1-2001, POSIX.1-2008.
40

SEE ALSO

42       cabs(3), cexp2(3), clog(3), cpow(3), complex(7)
43

COLOPHON

45       This  page  is  part of release 5.13 of the Linux man-pages project.  A
46       description of the project, information about reporting bugs,  and  the
47       latest     version     of     this    page,    can    be    found    at
48       https://www.kernel.org/doc/man-pages/.
49
50
51
52                                  2021-03-22                           CEXP(3)
Impressum