OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[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 .\"*******************************************************************
34 .\"
35 .\" This file was generated with po4a. Translate the source file.
36 .\"
37 .\"*******************************************************************
38 .TH TAN 3 2010\-09\-11 "" "Linux Programmer's Manual"
39 .SH 名前
40 tan, tanf, tanl \- 正接(タンジェント)関数
41 .SH 書式
42 .nf
43 \fB#include <math.h>\fP
44 .sp
45 \fBdouble tan(double \fP\fIx\fP\fB);\fP
46 .br
47 \fBfloat tanf(float \fP\fIx\fP\fB);\fP
48 .br
49 \fBlong double tanl(long double \fP\fIx\fP\fB);\fP
50 .fi
51 .sp
52 \fI\-lm\fP でリンクする。
53 .sp
54 .in -4n
55 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
56 .in
57 .sp
58 .ad l
59 \fBtanf\fP(), \fBtanl\fP():
60 .RS 4
61 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
62 || _POSIX_C_SOURCE\ >=\ 200112L;
63 .br
64 or \fIcc\ \-std=c99\fP
65 .RE
66 .ad
67 .SH 説明
68 \fBtan\fP()  関数は \fIx\fP の正接(タンジェント)の値を返す。 \fIx\fP はラジアン単位で指定する。
69 .SH 返り値
70 成功すると、これらの関数は \fIx\fP の正接 (タンジェント) を返す。
71
72 \fIx\fP が NaN の場合、NaN が返される。
73
74 \fIx\fP が正の無限大か負の無限大の場合、 領域エラー (domain error) が発生し、NaN が返される。
75
76 .\" I think overflow can't occur, because the closest floating-point
77 .\" representation of pi/2 is still not close enough to pi/2 to
78 .\" produce a large enough value to overflow.
79 .\" Testing certainly seems to bear this out.  -- mtk, Jul 08
80 .\"
81 .\" POSIX.1 allows an optional underflow error;
82 .\" glibc 2.8 doesn't do this
83 .\" POSIX.1 an optional range error for subnormal x;
84 .\" glibc 2.8 doesn't do this
85 結果がオーバーフローする場合、範囲エラー (range error) が発生し、 各関数はそれぞれ \fBHUGE_VAL\fP, \fBHUGE_VALF\fP,
86 \fBHUGE_VALL\fP を返す。
87 .SH エラー
88 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
89 .PP
90 以下のエラーが発生する可能性がある。
91 .TP 
92 領域エラー (domain error): \fIx\fP が無限大である
93 \fIerrno\fP に \fBEDOM\fP が設定される (「バグ」の節も参照)。 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP)
94 が上がる。
95 .TP 
96 範囲エラー (range error): 結果のオーバーフロー
97 .\" Unable to test this case, since the best approximation of
98 .\" pi/2 in double precision only yields a tan() value of 1.633e16.
99 .\" .I errno
100 .\" is set to
101 .\" .BR ERANGE .
102 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)  が上がる。
103 .SH 準拠
104 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
105 .SH バグ
106 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6782
107 バージョン 2.10 より前の glibc の実装では、 領域エラーが発生した際に、 \fIerror\fP に \fBEDOM\fP が設定されなかった。
108 .SH 関連項目
109 \fBacos\fP(3), \fBasin\fP(3), \fBatan\fP(3), \fBatan2\fP(3), \fBcos\fP(3), \fBctan\fP(3),
110 \fBsin\fP(3)