OSDN Git Service

(split) Fixed #25191 (typo in fenv.3).
[linuxjm/LDP_man-pages.git] / release / 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 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
55 .sp
56 .in -4n
57 Feature Test Macro Requirements for glibc (see
58 .BR feature_test_macros (7)):
59 .in
60 .sp
61 .ad l
62 .BR tanf (),
63 .BR tanl ():
64 .RS 4
65 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
66 _POSIX_C_SOURCE\ >=\ 200112L;
67 .br
68 or
69 .I cc\ -std=c99
70 .RE
71 .ad
72 .SH ÀâÌÀ
73 .BR tan ()
74 ´Ø¿ô¤Ï \fIx\fP ¤ÎÀµÀÜ¡Ê¥¿¥ó¥¸¥§¥ó¥È¡Ë¤ÎÃͤòÊÖ¤¹¡£
75 \fIx\fP ¤Ï¥é¥¸¥¢¥óñ°Ì¤Ç»ØÄꤹ¤ë¡£
76 .SH ÊÖ¤êÃÍ
77 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
78 .I x
79 ¤ÎÀµÀÜ (¥¿¥ó¥¸¥§¥ó¥È) ¤òÊÖ¤¹¡£
80
81 .I x
82 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
83
84 .I x
85 ¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
86 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
87
88 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢
89 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
90 .BR HUGE_VAL ,
91 .BR HUGE_VALF ,
92 .B HUGE_VALL
93 ¤òÊÖ¤¹¡£
94 .\" I think overflow can't occur, because the closest floating-point
95 .\" representation of pi/2 is still not close enough to pi/2 to
96 .\" produce a large enough value to overflow.
97 .\" Testing certainly seems to bear this out.  -- mtk, Jul 08
98 .\"
99 .\" POSIX.1 allows an optional underflow error;
100 .\" glibc 2.8 doesn't do this
101 .\" POSIX.1 an optional range error for subnormal x;
102 .\" glibc 2.8 doesn't do this
103 .SH ¥¨¥é¡¼
104 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
105 .BR math_error (7)
106 ¤ò»²¾È¤Î¤³¤È¡£
107 .PP
108 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
109 .TP
110 Îΰ襨¥é¡¼ (domain error): \fIx\fP ¤Ï̵¸ÂÂç¤Ç¤¢¤ë
111 .I errno
112 ¤Ë
113 .B EDOM
114 ¤¬ÀßÄꤵ¤ì¤ë (¡Ö¥Ð¥°¡×¤ÎÀá¤â»²¾È)¡£
115 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
116 .RB ( FE_INVALID )
117 ¤¬¾å¤¬¤ë¡£
118 .TP
119 ÈÏ°Ï¥¨¥é¡¼ (range error): ·ë²Ì¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼
120 .\" Unable to test this case, since the best approximation of
121 .\" pi/2 in double precision only yields a tan() value of 1.633e16.
122 .\" .I errno
123 .\" is set to
124 .\" .BR ERANGE .
125 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
126 .RB ( FE_OVERFLOW )
127 ¤¬¾å¤¬¤ë¡£
128 .SH ¥Ð¥°
129 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6782
130 ¥Ð¡¼¥¸¥ç¥ó 2.10 ¤è¤êÁ°¤Î glibc ¤Î¼ÂÁõ¤Ç¤Ï¡¢
131 Îΰ襨¥é¡¼¤¬È¯À¸¤·¤¿ºÝ¤Ë¡¢
132 .I error
133 ¤Ë
134 .B EDOM
135 ¤¬ÀßÄꤵ¤ì¤Ê¤«¤Ã¤¿¡£
136 .SH ½àµò
137 C99, POSIX.1-2001.
138 .I double
139 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
140 .SH ´ØÏ¢¹àÌÜ
141 .BR acos (3),
142 .BR asin (3),
143 .BR atan (3),
144 .BR atan2 (3),
145 .BR cos (3),
146 .BR ctan (3),
147 .BR sin (3)