OSDN Git Service

LDP: Update draft based on the previous commit
[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 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"
27 .\" References consulted:
28 .\"     Linux libc source code
29 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
30 .\"     386BSD man pages
31 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
32 .\" Modified 2002-07-27 by Walter Harms
33 .\"     (walter.harms@informatik.uni-oldenburg.de)
34 .\"
35 .\"*******************************************************************
36 .\"
37 .\" This file was generated with po4a. Translate the source file.
38 .\"
39 .\"*******************************************************************
40 .\"
41 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa
42 .\"         all rights reserved.
43 .\" Translated Sat, 13 Jul 1996 17:42:24 JST
44 .\"         by Kenji Kajiwara and Kentaro Ogawa
45 .\" Proof Reading: Takashi Yoshino
46 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
47 .\"
48 .TH TAN 3 2017\-09\-15 "" "Linux Programmer's Manual"
49 .SH 名前
50 tan, tanf, tanl \- 正接(タンジェント)関数
51 .SH 書式
52 .nf
53 \fB#include <math.h>\fP
54 .PP
55 \fBdouble tan(double \fP\fIx\fP\fB);\fP
56 \fBfloat tanf(float \fP\fIx\fP\fB);\fP
57 \fBlong double tanl(long double \fP\fIx\fP\fB);\fP
58 .fi
59 .PP
60 \fI\-lm\fP でリンクする。
61 .PP
62 .RS -4
63 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
64 .RE
65 .PP
66 .ad l
67 \fBtanf\fP(), \fBtanl\fP():
68 .RS 4
69 _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
70     || /* Since glibc 2.19: */ _DEFAULT_SOURCE
71     || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
72 .RE
73 .ad
74 .SH 説明
75 These functions return the tangent of \fIx\fP, where \fIx\fP is given in radians.
76 .SH 返り値
77 成功すると、これらの関数は \fIx\fP の正接 (タンジェント) を返す。
78 .PP
79 \fIx\fP が NaN の場合、NaN が返される。
80 .PP
81 \fIx\fP が正の無限大か負の無限大の場合、 領域エラー (domain error) が発生し、NaN が返される。
82 .PP
83 .\" I think overflow can't occur, because the closest floating-point
84 .\" representation of pi/2 is still not close enough to pi/2 to
85 .\" produce a large enough value to overflow.
86 .\" Testing certainly seems to bear this out.  -- mtk, Jul 08
87 .\"
88 .\" POSIX.1 allows an optional underflow error;
89 .\" glibc 2.8 doesn't do this
90 .\" POSIX.1 an optional range error for subnormal x;
91 .\" glibc 2.8 doesn't do this
92 結果がオーバーフローする場合、範囲エラー (range error) が発生し、 各関数はそれぞれ \fBHUGE_VAL\fP, \fBHUGE_VALF\fP,
93 \fBHUGE_VALL\fP を返す。
94 .SH エラー
95 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
96 .PP
97 以下のエラーが発生する可能性がある。
98 .TP 
99 領域エラー (domain error): \fIx\fP が無限大である
100 \fIerrno\fP に \fBEDOM\fP が設定される (「バグ」の節も参照)。 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP)
101 が上がる。
102 .TP 
103 範囲エラー (range error): 結果のオーバーフロー
104 .\" Unable to test this case, since the best approximation of
105 .\" pi/2 in double precision only yields a tan() value of 1.633e16.
106 .\" .I errno
107 .\" is set to
108 .\" .BR ERANGE .
109 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)  が上がる。
110 .SH 属性
111 この節で使用されている用語の説明については、 \fBattributes\fP(7) を参照。
112 .TS
113 allbox;
114 lbw21 lb lb
115 l l l.
116 インターフェース        属性  値
117 T{
118 \fBtan\fP(),
119 \fBtanf\fP(),
120 \fBtanl\fP()
121 T}      Thread safety   MT\-Safe
122 .TE
123 .SH 準拠
124 C99, POSIX.1\-2001, POSIX.1\-2008.
125 .PP
126 The variant returning \fIdouble\fP also conforms to SVr4, 4.3BSD, C89.
127 .SH バグ
128 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6782
129 バージョン 2.10 より前の glibc の実装では、 領域エラーが発生した際に、 \fIerrno\fP に \fBEDOM\fP が設定されなかった。
130 .SH 関連項目
131 \fBacos\fP(3), \fBasin\fP(3), \fBatan\fP(3), \fBatan2\fP(3), \fBcos\fP(3), \fBctan\fP(3),
132 \fBsin\fP(3)
133 .SH この文書について
134 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は
135 \%https://www.kernel.org/doc/man\-pages/ に書かれている。