]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/cexp.3
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
[thirdparty/man-pages.git] / man3 / cexp.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
5 .\" %%%LICENSE_END
6 .\"
7 .TH CEXP 3 2017-09-15 "" "Linux Programmer's Manual"
8 .SH NAME
9 cexp, cexpf, cexpl \- complex exponential function
10 .SH SYNOPSIS
11 .B #include <complex.h>
12 .PP
13 .BI "double complex cexp(double complex " z ");"
14 .br
15 .BI "float complex cexpf(float complex " z ");"
16 .br
17 .BI "long double complex cexpl(long double complex " z ");"
18 .PP
19 Link with \fI\-lm\fP.
20 .SH DESCRIPTION
21 These functions calculate e (2.71828..., the base of natural logarithms)
22 raised to the power of
23 .IR z .
24 .PP
25 One has:
26 .PP
27 .nf
28 cexp(I * z) = ccos(z) + I * csin(z)
29 .fi
30 .SH VERSIONS
31 These functions first appeared in glibc in version 2.1.
32 .SH ATTRIBUTES
33 For an explanation of the terms used in this section, see
34 .BR attributes (7).
35 .TS
36 allbox;
37 lbw24 lb lb
38 l l l.
39 Interface Attribute Value
40 T{
41 .BR cexp (),
42 .BR cexpf (),
43 .BR cexpl ()
44 T} Thread safety MT-Safe
45 .TE
46 .sp 1
47 .SH CONFORMING TO
48 C99, POSIX.1-2001, POSIX.1-2008.
49 .SH SEE ALSO
50 .BR cabs (3),
51 .BR cexp2 (3),
52 .BR clog (3),
53 .BR cpow (3),
54 .BR complex (7)