OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / sin.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 & Modified Thu Feb 17 22:27:53 JST 2005
39 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
40 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
41 .\"
42 .TH SIN 3  2010-09-11 "" "Linux Programmer's Manual"
43 .\"O .SH NAME
44 .SH 名前
45 .\"O sin, sinf, sinl \- sine function
46 sin, sinf, sinl \- 正弦 (サイン) 関数
47 .\"O .SH SYNOPSIS
48 .SH 書式
49 .nf
50 .B #include <math.h>
51 .sp
52 .BI "double sin(double " x );
53 .br
54 .BI "float sinf(float " x );
55 .br
56 .BI "long double sinl(long double " x );
57 .fi
58 .sp
59 .\"O Link with \fI\-lm\fP.
60 \fI\-lm\fP でリンクする。
61 .sp
62 .in -4n
63 .\"O Feature Test Macro Requirements for glibc (see
64 .\"O .BR feature_test_macros (7)):
65 glibc 向けの機能検査マクロの要件
66 .RB ( feature_test_macros (7)
67 参照):
68 .in
69 .sp
70 .ad l
71 .BR sinf (),
72 .BR sinl ():
73 .RS 4
74 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
75 _POSIX_C_SOURCE\ >=\ 200112L;
76 .br
77 or
78 .I cc\ -std=c99
79 .RE
80 .ad
81 .\"O .SH DESCRIPTION
82 .SH 説明
83 .\"O The
84 .\"O .BR sin ()
85 .\"O function returns the sine of \fIx\fP, where \fIx\fP is
86 .\"O given in radians.
87 .BR sin ()
88 関数は \fIx\fP の正弦 (サイン) の値を返す。
89 \fIx\fP はラジアン単位で指定する。
90 .\"O .SH RETURN VALUE
91 .SH 返り値
92 .\"O On success, these functions return the sine of
93 .\"O .IR x .
94 成功すると、これらの関数は
95 .I x
96 の正弦を返す。
97
98 .\"O If
99 .\"O .I x
100 .\"O is a NaN, a NaN is returned.
101 .I x
102 が NaN の場合、NaN が返される。
103
104 .\"O If
105 .\"O .I x
106 .\"O is positive infinity or negative infinity,
107 .\"O a domain error occurs,
108 .\"O and a NaN is returned.
109 .I x
110 が正の無限大か負の無限大の場合、
111 領域エラー (domain error) が発生し、NaN が返される。
112 .\"
113 .\" POSIX.1 allows an optional range error for subnormal x
114 .\" glibc 2.8 doesn't do this
115 .\"O .SH ERRORS
116 .SH エラー
117 .\"O See
118 .\"O .BR math_error (7)
119 .\"O for information on how to determine whether an error has occurred
120 .\"O when calling these functions.
121 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
122 .BR math_error (7)
123 を参照のこと。
124 .PP
125 .\"O The following errors can occur:
126 以下のエラーが発生する可能性がある。
127 .TP
128 .\"O Domain error: \fIx\fP is an infinity
129 領域エラー (domain error): \fIx\fP が無限大
130 .\"O .I errno
131 .\"O is set to
132 .\"O .BR EDOM
133 .\"O (but see BUGS).
134 .\"O An invalid floating-point exception
135 .\"O .RB ( FE_INVALID )
136 .\"O is raised.
137 .I errno
138
139 .B EDOM
140 が設定される (「バグ」の節も参照)。
141 不正 (invalid) 浮動小数点例外
142 .RB ( FE_INVALID )
143 が上がる。
144 .PP
145 .\"O .SH "CONFORMING TO"
146 .SH 準拠
147 C99, POSIX.1-2001.
148 .\"O The variant returning
149 .\"O .I double
150 .\"O also conforms to
151 .\"O SVr4, 4.3BSD, C89.
152 .I double
153 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
154 .\"O .SH BUGS
155 .SH バグ
156 .\"O Before version 2.10, the glibc implementation did not set
157 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6781
158 .\"O .I errno
159 .\"O to
160 .\"O .B EDOM
161 .\"O when a domain error occurred.
162 バージョン 2.10 より前の glibc の実装では、
163 領域エラーが発生した際に、
164 .I error
165
166 .B EDOM
167 が設定されなかった。
168 .\"O .SH "SEE ALSO"
169 .SH 関連項目
170 .BR acos (3),
171 .BR asin (3),
172 .BR atan (3),
173 .BR atan2 (3),
174 .BR cos (3),
175 .BR csin (3),
176 .BR sincos (3),
177 .BR tan (3)