xref: /openbsd/lib/libm/man/cexp.3 (revision 5af055cd)
1.\"	$OpenBSD: cexp.3,v 1.2 2013/06/05 03:40:26 tedu Exp $
2.\"
3.\" Copyright (c) 2011 Martynas Venckus <martynas@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: June 5 2013 $
18.Dt CEXP 3
19.Os
20.Sh NAME
21.Nm cexp ,
22.Nm cexpf ,
23.Nm cexpl
24.Nd complex exponential functions
25.Sh SYNOPSIS
26.In complex.h
27.Ft double complex
28.Fn cexp "double complex z"
29.Ft float complex
30.Fn cexpf "float complex z"
31.Ft long double complex
32.Fn cexpl "long double complex z"
33.Sh DESCRIPTION
34The
35.Fn cexp ,
36.Fn cexpf
37and
38.Fn cexpl
39functions compute the exponential of
40.Fa z .
41.Pp
42If
43.Fa z
44= x + iy, then
45.Bd -literal -offset indent
46cexp(z) = exp(x) cos(y) + i exp(x) sin(y).
47.Ed
48.Sh RETURN VALUES
49The
50.Fn cexp ,
51.Fn cexpf
52and
53.Fn cexpl
54functions return the exponential of
55.Fa z .
56.Sh SEE ALSO
57.Xr clog 3 ,
58.Xr cpow 3
59.Sh STANDARDS
60The
61.Fn cexp ,
62.Fn cexpf
63and
64.Fn cexpl
65functions conform to
66.St -isoC-99 .
67