OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / 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 2008-08-05 ""  "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 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
66 .I cc\ -std=c99
67 .ad b
68 .\"O .SH DESCRIPTION
69 .SH ÀâÌÀ
70 .BR tan ()
71 ´Ø¿ô¤Ï \fIx\fP ¤ÎÀµÀÜ¡Ê¥¿¥ó¥¸¥§¥ó¥È¡Ë¤ÎÃͤòÊÖ¤¹¡£
72 \fIx\fP ¤Ï¥é¥¸¥¢¥óñ°Ì¤Ç»ØÄꤹ¤ë¡£
73 .\"O .SH RETURN VALUE
74 .SH ÊÖ¤êÃÍ
75 .\"O On success, these functions return the tangent of
76 .\"O .IR x .
77 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
78 .I x
79 ¤ÎÀµÀÜ (¥¿¥ó¥¸¥§¥ó¥È) ¤òÊÖ¤¹¡£
80
81 .\"O If
82 .\"O .I x
83 .\"O is a NaN, a NaN is returned.
84 .I x
85 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
86
87 .\"O If
88 .\"O .I x
89 .\"O is positive infinity or negative infinity,
90 .\"O a domain error occurs,
91 .\"O and a NaN is returned.
92 .I x
93 ¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
94 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
95
96 .\"O If the correct result would overflow,
97 .\"O a range error occurs,
98 .\"O and the functions return
99 .\"O .BR HUGE_VAL ,
100 .\"O .BR HUGE_VALF ,
101 .\"O or
102 .\"O .BR HUGE_VALL ,
103 .\"O respectively, with the mathematically correct sign.
104 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢
105 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
106 .BR HUGE_VAL ,
107 .BR HUGE_VALF ,
108 .B HUGE_VALL
109 ¤òÊÖ¤¹¡£
110 .\" I think overflow can't occur, because the closest floating-point
111 .\" representation of pi/2 is still not close enough to pi/2 to
112 .\" produce a large enough value to overflow.
113 .\" Testing certainly seems to bear this out.  -- mtk, Jul 08
114 .\"
115 .\" POSIX.1 allows an optional underflow error;
116 .\" glibc 2.8 doesn't do this
117 .\" POSIX.1 an optional range error for subnormal x;
118 .\" glibc 2.8 doesn't do this
119 .\"O .SH ERRORS
120 .SH ¥¨¥é¡¼
121 .\"O See
122 .\"O .BR math_error (7)
123 .\"O for information on how to determine whether an error has occurred
124 .\"O when calling these functions.
125 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
126 .BR math_error (7)
127 ¤ò»²¾È¤Î¤³¤È¡£
128 .PP
129 .\"O The following errors can occur:
130 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
131 .TP
132 .\"O Domain error: \fIx\fP is an infinity
133 Îΰ襨¥é¡¼ (domain error): \fIx\fP ¤Ï̵¸ÂÂç¤Ç¤¢¤ë
134 .\" .I errno
135 .\" is set to
136 .\" .BR EDOM .
137 .\"O An invalid floating-point exception
138 .\"O .RB ( FE_INVALID )
139 .\"O is raised.
140 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
141 .RB ( FE_INVALID )
142 ¤¬¾å¤¬¤ë¡£
143 .TP
144 .\"O Range error: result overflow
145 ÈÏ°Ï¥¨¥é¡¼ (range error): ·ë²Ì¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼
146 .\" Unable to test this case, since the best approximation of
147 .\" pi/2 in double precision only yields a tan() value of 1.633e16.
148 .\" .I errno
149 .\" is set to
150 .\" .BR ERANGE .
151 .\"O An overflow floating-point exception
152 .\"O .RB ( FE_OVERFLOW )
153 .\"O is raised.
154 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
155 .RB ( FE_OVERFLOW )
156 ¤¬¾å¤¬¤ë¡£
157 .PP
158 .\"O These functions do not set
159 .\"O .IR errno .
160 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
161 .I errno
162 ¤òÀßÄꤷ¤Ê¤¤¡£
163 .\" FIXME . Is it intentional that these functions do not set
164 .\" errno (at least for domain error)?
165 .\" Bug raised: http://sourceware.org/bugzilla/show_bug.cgi?id=6782
166 .\"O .SH "CONFORMING TO"
167 .SH ½àµò
168 C99, POSIX.1-2001.
169 .\"O The variant returning
170 .\"O .I double
171 .\"O also conforms to
172 .\"O SVr4, 4.3BSD, C89.
173 .I double
174 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
175 .SH ´ØÏ¢¹àÌÜ
176 .BR acos (3),
177 .BR asin (3),
178 .BR atan (3),
179 .BR atan2 (3),
180 .BR cos (3),
181 .BR ctan (3),
182 .BR sin (3)