OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[linuxjm/LDP_man-pages.git] / draft / man3 / tan.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-27 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:42:24 JST
36 .\"         by Kenji Kajiwara and Kentaro Ogawa
37 .\" Proof Reading: Takashi Yoshino
38 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
39 .\"
40 .TH TAN 3 2010-09-11 ""  "Linux Programmer's Manual"
41 .SH Ì¾Á°
42 tan, tanf, tanl \- ÀµÀÜ¡Ê¥¿¥ó¥¸¥§¥ó¥È¡Ë´Ø¿ô
43 .SH ½ñ¼°
44 .nf
45 .B #include <math.h>
46 .sp
47 .BI "double tan(double " x );
48 .br
49 .BI "float tanf(float " x );
50 .br
51 .BI "long double tanl(long double " x );
52 .fi
53 .sp
54 .\"O Link with \fI\-lm\fP.
55 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
56 .sp
57 .in -4n
58 Feature Test Macro Requirements for glibc (see
59 .BR feature_test_macros (7)):
60 .in
61 .sp
62 .ad l
63 .BR tanf (),
64 .BR tanl ():
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
73 .\"O .SH DESCRIPTION
74 .SH ÀâÌÀ
75 .BR tan ()
76 ´Ø¿ô¤Ï \fIx\fP ¤ÎÀµÀÜ¡Ê¥¿¥ó¥¸¥§¥ó¥È¡Ë¤ÎÃͤòÊÖ¤¹¡£
77 \fIx\fP ¤Ï¥é¥¸¥¢¥óñ°Ì¤Ç»ØÄꤹ¤ë¡£
78 .\"O .SH RETURN VALUE
79 .SH ÊÖ¤êÃÍ
80 .\"O On success, these functions return the tangent of
81 .\"O .IR x .
82 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
83 .I x
84 ¤ÎÀµÀÜ (¥¿¥ó¥¸¥§¥ó¥È) ¤òÊÖ¤¹¡£
85
86 .\"O If
87 .\"O .I x
88 .\"O is a NaN, a NaN is returned.
89 .I x
90 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
91
92 .\"O If
93 .\"O .I x
94 .\"O is positive infinity or negative infinity,
95 .\"O a domain error occurs,
96 .\"O and a NaN is returned.
97 .I x
98 ¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
99 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
100
101 .\"O If the correct result would overflow,
102 .\"O a range error occurs,
103 .\"O and the functions return
104 .\"O .BR HUGE_VAL ,
105 .\"O .BR HUGE_VALF ,
106 .\"O or
107 .\"O .BR HUGE_VALL ,
108 .\"O respectively, with the mathematically correct sign.
109 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢
110 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
111 .BR HUGE_VAL ,
112 .BR HUGE_VALF ,
113 .B HUGE_VALL
114 ¤òÊÖ¤¹¡£
115 .\" I think overflow can't occur, because the closest floating-point
116 .\" representation of pi/2 is still not close enough to pi/2 to
117 .\" produce a large enough value to overflow.
118 .\" Testing certainly seems to bear this out.  -- mtk, Jul 08
119 .\"
120 .\" POSIX.1 allows an optional underflow error;
121 .\" glibc 2.8 doesn't do this
122 .\" POSIX.1 an optional range error for subnormal x;
123 .\" glibc 2.8 doesn't do this
124 .\"O .SH ERRORS
125 .SH ¥¨¥é¡¼
126 .\"O See
127 .\"O .BR math_error (7)
128 .\"O for information on how to determine whether an error has occurred
129 .\"O when calling these functions.
130 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
131 .BR math_error (7)
132 ¤ò»²¾È¤Î¤³¤È¡£
133 .PP
134 .\"O The following errors can occur:
135 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
136 .TP
137 .\"O Domain error: \fIx\fP is an infinity
138 Îΰ襨¥é¡¼ (domain error): \fIx\fP ¤Ï̵¸ÂÂç¤Ç¤¢¤ë
139 .\"O .I errno
140 .\"O is set to
141 .\"O .BR EDOM
142 .\"O (but see BUGS).
143 .\"O An invalid floating-point exception
144 .\"O .RB ( FE_INVALID )
145 .\"O is raised.
146 .I errno
147 ¤Ë
148 .B EDOM
149 ¤¬ÀßÄꤵ¤ì¤ë (¡Ö¥Ð¥°¡×¤ÎÀá¤â»²¾È)¡£
150 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
151 .RB ( FE_INVALID )
152 ¤¬¾å¤¬¤ë¡£
153 .TP
154 .\"O Range error: result overflow
155 ÈÏ°Ï¥¨¥é¡¼ (range error): ·ë²Ì¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼
156 .\" Unable to test this case, since the best approximation of
157 .\" pi/2 in double precision only yields a tan() value of 1.633e16.
158 .\" .I errno
159 .\" is set to
160 .\" .BR ERANGE .
161 .\"O An overflow floating-point exception
162 .\"O .RB ( FE_OVERFLOW )
163 .\"O is raised.
164 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
165 .RB ( FE_OVERFLOW )
166 ¤¬¾å¤¬¤ë¡£
167 .\"O .SH BUGS
168 .SH ¥Ð¥°
169 .\"O Before version 2.10, the glibc implementation did not set
170 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6782
171 .\"O .I errno
172 .\"O to
173 .\"O .B EDOM
174 .\"O when a domain error occurred.
175 ¥Ð¡¼¥¸¥ç¥ó 2.10 ¤è¤êÁ°¤Î glibc ¤Î¼ÂÁõ¤Ç¤Ï¡¢
176 Îΰ襨¥é¡¼¤¬È¯À¸¤·¤¿ºÝ¤Ë¡¢
177 .I error
178 ¤Ë
179 .B EDOM
180 ¤¬ÀßÄꤵ¤ì¤Ê¤«¤Ã¤¿¡£
181 .\"O .SH "CONFORMING TO"
182 .SH ½àµò
183 C99, POSIX.1-2001.
184 .\"O The variant returning
185 .\"O .I double
186 .\"O also conforms to
187 .\"O SVr4, 4.3BSD, C89.
188 .I double
189 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
190 .SH ´ØÏ¢¹àÌÜ
191 .BR acos (3),
192 .BR asin (3),
193 .BR atan (3),
194 .BR atan2 (3),
195 .BR cos (3),
196 .BR ctan (3),
197 .BR sin (3)