OSDN Git Service

(split) LDP: draft snapshot generated from latest pthread/ja.po files.
[linuxjm/LDP_man-pages.git] / release / man3 / acos.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 2002-07-25 by Walter Harms
31 .\"     (walter.harms@informatik.uni-oldenburg.de)
32 .\"
33 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa
34 .\"         all rights reserved.
35 .\" Translated Sat, 13 Jul 1996 17:50:45 JST
36 .\"         by Kenji Kajiwara and Kentaro Ogawa
37 .\" Proof Reading: Takashi Yoshino
38 .\" Updated Tue Aug  5 23:12:59 JST 2003
39 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
40 .\" Updated 2008-09-14, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
41 .\"
42 .TH ACOS 3  2010-09-20 "" "Linux Programmer's Manual"
43 .SH 名前
44 acos, acosf, acosl \- 逆余弦(arc cosine)関数
45 .SH 書式
46 .nf
47 .B #include <math.h>
48 .sp
49 .BI "double acos(double " x );
50 .BI "float acosf(float " x );
51 .BI "long double acosl(long double " x );
52 .fi
53 .sp
54 \fI\-lm\fP でリンクする。
55 .sp
56 .in -4n
57 glibc 向けの機能検査マクロの要件
58 .RB ( feature_test_macros (7)
59 参照):
60 .in
61 .sp
62 .ad l
63 .BR acosf (),
64 .BR acosl ():
65 .RS 4
66 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
67 _POSIX_C_SOURCE\ >=\ 200112L;
68 .br
69 or
70 .I cc\ -std=c99
71 .RE
72 .ad b
73 .SH 説明
74 .BR acos ()
75 関数は \fIx\fP の逆余弦(arc cosine) を計算する。
76 すなわち、その余弦 (cosine) が \fIx\fP となる値である。
77 .SH 返り値
78 成功すると、これらの関数は
79 .I x
80 の逆余弦をラジアン単位で返す。
81 返り値は [0,\ pi] の範囲となる。
82
83 .I x
84 が NaN の場合、NaN が返される。
85
86 .I x
87 が +1 の場合、+0 が返される。
88
89 .I x
90 が正の無限大か負の無限大の場合、
91 領域エラー (domain error) が発生し、NaN が返される。
92
93 .I x
94 が [\-1,\ 1] の範囲に入っていない場合、
95 領域エラー (domain error) が発生し、NaN が返される。
96 .SH エラー
97 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
98 .BR math_error (7)
99 を参照のこと。
100 .PP
101 以下のエラーが発生する可能性がある。
102 .TP
103 領域エラー (domain error): \fIx\fP が [\-1,\ 1] の範囲に入っていない
104 .I errno
105
106 .B EDOM
107 が設定される。
108 無効 (invalid) 浮動小数点例外
109 .RB ( FE_INVALID )
110 が上がる。
111 .SH 準拠
112 C99, POSIX.1-2001.
113 .I double
114 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
115 .SH 関連項目
116 .BR asin (3),
117 .BR atan (3),
118 .BR atan2 (3),
119 .BR cacos (3),
120 .BR cos (3),
121 .BR sin (3),
122 .BR tan (3)