Debian Codegraph @

upstream/debian-unstable/man3/cexp.3

raw
1 '\" t
2 .\" Copyright 2002, Walter Harms <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-1.0-or-later
6 .\"
7 .TH cexp 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 cexp, cexpf, cexpl \- complex exponential function
10 .SH LIBRARY
11 Math library
12 .RI ( libm ,\~ \-lm )
13 .SH SYNOPSIS
14 .nf
15 .B #include <complex.h>
16 .P
17 .BI "double complex cexp(double complex " z );
18 .BI "float complex cexpf(float complex " z );
19 .BI "long double complex cexpl(long double complex " z );
20 .fi
21 .SH DESCRIPTION
22 These functions calculate e (2.71828..., the base of natural logarithms)
23 raised to the power of
24 .IR z .
25 .P
26 One has:
27 .P
28 .in +4n
29 .EX
30 cexp(I * z) = ccos(z) + I * csin(z)
31 .EE
32 .in
33 .SH ATTRIBUTES
34 For an explanation of the terms used in this section, see
35 .BR attributes (7).
36 .TS
37 allbox;
38 lbx lb lb
39 l l l.
40 Interface Attribute Value
41 T{
42 .na
43 .nh
44 .BR cexp (),
45 .BR cexpf (),
46 .BR cexpl ()
47 T} Thread safety MT-Safe
48 .TE
49 .SH STANDARDS
50 C11, POSIX.1-2008.
51 .SH HISTORY
52 glibc 2.1.
53 C99, POSIX.1-2001.
54 .SH SEE ALSO
55 .BR cabs (3),
56 .BR cexp2 (3),
57 .BR clog (3),
58 .BR cpow (3),
59 .BR complex (7)