OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[linuxjm/LDP_man-pages.git] / draft / 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 .\"O .SH NAME
44 .SH Ì¾Á°
45 .\"O acos, acosf, acosl \- arc cosine function
46 acos, acosf, acosl \- µÕ;¸¹¡Êarc cosine¡Ë´Ø¿ô
47 .\"O .SH SYNOPSIS
48 .SH ½ñ¼°
49 .nf
50 .B #include <math.h>
51 .sp
52 .BI "double acos(double " x );
53 .BI "float acosf(float " x );
54 .BI "long double acosl(long double " x );
55 .fi
56 .sp
57 .\"O Link with \fI\-lm\fP.
58 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
59 .sp
60 .in -4n
61 .\"O Feature Test Macro Requirements for glibc (see
62 .\"O .BR feature_test_macros (7)):
63 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
64 .RB ( feature_test_macros (7)
65 »²¾È):
66 .in
67 .sp
68 .ad l
69 .BR acosf (),
70 .BR acosl ():
71 .RS 4
72 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
73 _POSIX_C_SOURCE\ >=\ 200112L;
74 .br
75 or
76 .I cc\ -std=c99
77 .RE
78 .ad b
79 .\"O .SH DESCRIPTION
80 .SH ÀâÌÀ
81 .\"O The
82 .\"O .BR acos ()
83 .\"O function calculates the arc cosine of \fIx\fP; that is
84 .\"O the value whose cosine is \fIx\fP.
85 .BR acos ()
86 ´Ø¿ô¤Ï \fIx\fP ¤ÎµÕ;¸¹¡Êarc cosine) ¤ò·×»»¤¹¤ë¡£
87 ¤¹¤Ê¤ï¤Á¡¢¤½¤Î;¸¹ (cosine) ¤¬ \fIx\fP ¤È¤Ê¤ëÃͤǤ¢¤ë¡£
88 .\"O .SH "RETURN VALUE"
89 .SH ÊÖ¤êÃÍ
90 .\"O On success, these functions return the arc cosine of
91 .\"O .IR x
92 .\"O in radians; the return value is in the range [0,\ pi].
93 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
94 .I x
95 ¤ÎµÕ;¸¹¤ò¥é¥¸¥¢¥óñ°Ì¤ÇÊÖ¤¹¡£
96 ÊÖ¤êÃͤϠ[0,\ pi] ¤ÎÈϰϤȤʤ롣
97
98 .\"O If
99 .\"O .I x
100 .\"O is a NaN, a NaN is returned.
101 .I x
102 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
103
104 .\"O If
105 .\"O .I x
106 .\"O is +1,
107 .\"O +0 is returned.
108 .I x
109 ¤¬ +1 ¤Î¾ì¹ç¡¢+0 ¤¬ÊÖ¤µ¤ì¤ë¡£
110
111 .\"O If
112 .\"O .I x
113 .\"O is positive infinity or negative infinity,
114 .\"O a domain error occurs,
115 .\"O and a NaN is returned.
116 .I x
117 ¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
118 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
119
120 .\"O If
121 .\"O .I x
122 .\"O is outside the range [\-1,\ 1],
123 .\"O a domain error occurs,
124 .\"O and a NaN is returned.
125 .I x
126 ¤¬ [\-1,\ 1] ¤ÎÈϰϤËÆþ¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
127 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
128 .\"O .SH ERRORS
129 .SH ¥¨¥é¡¼
130 .\"O See
131 .\"O .BR math_error (7)
132 .\"O for information on how to determine whether an error has occurred
133 .\"O when calling these functions.
134 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
135 .BR math_error (7)
136 ¤ò»²¾È¤Î¤³¤È¡£
137 .PP
138 .\"O The following errors can occur:
139 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
140 .TP
141 .\"O Domain error: \fIx\fP is outside the range [\-1,\ 1]
142 Îΰ襨¥é¡¼ (domain error): \fIx\fP ¤¬ [\-1,\ 1] ¤ÎÈϰϤËÆþ¤Ã¤Æ¤¤¤Ê¤¤
143 .\"O .I errno
144 .\"O is set to
145 .\"O .BR EDOM .
146 .\"O An invalid floating-point exception
147 .\"O .RB ( FE_INVALID )
148 .\"O is raised.
149 .I errno
150 ¤Ë
151 .B EDOM
152 ¤¬ÀßÄꤵ¤ì¤ë¡£
153 ̵¸ú (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
154 .RB ( FE_INVALID )
155 ¤¬¾å¤¬¤ë¡£
156 .\"O .SH "CONFORMING TO"
157 .SH ½àµò
158 C99, POSIX.1-2001.
159 .\"O The variant returning
160 .\"O .I double
161 .\"O also conforms to
162 .\"O SVr4, 4.3BSD, C89.
163 .I double
164 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
165 .\"O .SH "SEE ALSO"
166 .SH ´ØÏ¢¹àÌÜ
167 .BR asin (3),
168 .BR atan (3),
169 .BR atan2 (3),
170 .BR cacos (3),
171 .BR cos (3),
172 .BR sin (3),
173 .BR tan (3)