OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / LDP_man-pages / release / 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 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
35 .\"         all rights reserved.
36 .\" Translated Tue Sep 23 20:27:35 JST 2003
37 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
38 .\"
39 .TH EXP2 3  2010-09-20  "" "Linux Programmer's Manual"
40 .SH 名前
41 exp2, exp2f, exp2l \- 底が 2 の指数関数
42 .SH 書式
43 .nf
44 .B #include <math.h>
45 .sp
46 .BI "double exp2(double " x );
47 .br
48 .BI "float exp2f(float " x );
49 .br
50 .BI "long double exp2l(long double " x );
51 .fi
52 .sp
53 \fI-lm\fP でリンクする。
54 .sp
55 .in -4n
56 glibc 向けの機能検査マクロの要件
57 .RB ( feature_test_macros (7)
58 参照):
59 .in
60 .sp
61 .ad l
62 .BR exp2 (),
63 .BR exp2f (),
64 .BR exp2l ():
65 .RS 4
66 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
67 .br
68 or
69 .I cc\ -std=c99
70 .RE
71 .ad b
72 .SH 説明
73 .BR exp2 ()
74 関数は 2 の \fIx\fP 乗の値を返す。
75 .SH 返り値
76 成功すると、これらの関数は 2 の
77 .I x
78 乗を返す。
79
80 無限大や NaN の扱いや、オーバーフローとアンダーフローなどの
81 さまざまな特別な状況については、
82 .BR exp (3)
83 を参照のこと。
84 .SH エラー
85 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
86 .BR math_error (7)
87 を参照のこと。
88
89 これらの関数で発生するエラーについては、
90 .BR exp (3)
91 を参照のこと。
92 .SH バージョン
93 これらの関数は glibc バージョン 2.1 で初めて登場した。
94 .SH 準拠
95 C99, POSIX.1-2001.
96 .I double
97 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
98 .SH 関連項目
99 .BR cbrt (3),
100 .BR cexp2 (3),
101 .BR exp (3),
102 .BR exp10 (3),
103 .BR sqrt (3)