OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / original / man3 / exp2.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\"     <mtk.manpages@gmail.com>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 1995-08-14 by Arnt Gulbrandsen <agulbra@troll.no>
31 .\" Modified 2002-07-27 by Walter Harms
32 .\"     (walter.harms@informatik.uni-oldenburg.de)
33 .\"
34 .TH EXP2 3  2008-08-11  "" "Linux Programmer's Manual"
35 .SH NAME
36 exp2, exp2f, exp2l \- base-2 exponential function
37 .SH SYNOPSIS
38 .nf
39 .B #include <math.h>
40 .sp
41 .BI "double exp2(double " x );
42 .br
43 .BI "float exp2f(float " x );
44 .br
45 .BI "long double exp2l(long double " x );
46 .fi
47 .sp
48 Link with \fI\-lm\fP.
49 .sp
50 .in -4n
51 Feature Test Macro Requirements for glibc (see
52 .BR feature_test_macros (7)):
53 .in
54 .sp
55 .ad l
56 .BR exp2 (),
57 .BR exp2f (),
58 .BR exp2l ():
59 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
60 .I cc\ -std=c99
61 .ad b
62 .SH DESCRIPTION
63 The
64 .BR exp2 ()
65 function returns the value of 2
66 raised to the power of \fIx\fP.
67 .SH RETURN VALUE
68 On success, these functions return the base-2 exponential value of
69 .IR x .
70
71 For various special cases, including the handling of infinity and NaN,
72 as well as overflows and underflows, see
73 .BR exp (3).
74 .SH ERRORS
75 See
76 .BR math_error (7)
77 for information on how to determine whether an error has occurred
78 when calling these functions.
79
80 For a discussion of the errors that can occur for these functions, see
81 .BR exp (3).
82 .SH VERSIONS
83 These functions first appeared in glibc in version 2.1.
84 .SH "CONFORMING TO"
85 C99, POSIX.1-2001.
86 The variant returning
87 .I double
88 also conforms to
89 SVr4, 4.3BSD, C89.
90 .SH "SEE ALSO"
91 .BR cbrt (3),
92 .BR cexp2 (3),
93 .BR exp (3),
94 .BR exp10 (3),
95 .BR sqrt (3)