OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / sincos.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL, 2002-07-27 Walter Harms
3 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
4 .\"     <mtk.manpages@gmail.com>
5 .\"
6 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
7 .\"         all rights reserved.
8 .\" Translated Tue Sep  9 04:06:20 JST 2003
9 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
10 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
11 .\" 
12 .TH SINCOS 3  2008-08-11 "GNU" "Linux Programmer's Manual"
13 .\"O .SH NAME
14 .SH 名前
15 .\"O sincos, sincosf, sincosl \- calculate sin and cos simultaneously
16 sincos, sincosf, sincosl \- 正弦と余弦を同時に計算する
17 .\"O .SH SYNOPSIS
18 .SH 書式
19 .nf
20 .\"O .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
21 .BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
22 .B #include <math.h>
23 .sp
24 .BI "void sincos(double " x ", double *" sin ", double *" cos );
25 .br
26 .BI "void sincosf(float " x ", float *" sin ", float *" cos );
27 .br
28 .BI "void sincosl(long double " x ", long double *" sin ", long double *" cos );
29 .fi
30 .sp
31 .\"O Link with \fI\-lm\fP.
32 \fI\-lm\fP でリンクする。
33 .\"O .SH DESCRIPTION
34 .SH 説明
35 .\"O Several applications need sine and cosine of the same angle
36 .\"O .IR x .
37 .\"O This function computes both at the same time, and stores the results in
38 .\"O .I *sin
39 .\"O and
40 .\"O .IR *cos .
41 アプリケーションの中には、同じ角度
42 .I x
43 について正弦と余弦の両方の計算が必要なものがある。
44 この関数は両者を同時に計算し、その結果を
45 .I *sin
46
47 .I *cos
48 に格納する。
49
50 .\"O If
51 .\"O .I x
52 .\"O is a NaN,
53 .\"O a NaN is returned in
54 .\"O .I *sin
55 .\"O and
56 .\"O .IR *cos .
57 .I x
58 が NaN の場合、
59 .I *sin
60
61 .I *cos
62 に NaN が返される。
63
64 .\"O If
65 .\"O .I x
66 .\"O is positive infinity or negative infinity,
67 .\"O a domain error occurs, and
68 .\"O a NaN is returned in
69 .\"O .I *sin
70 .\"O and
71 .\"O .IR *cos .
72 .I x
73 が正の無限大か負の無限大の場合、
74 領域エラー (domain error) が発生し、
75 .I *sin
76
77 .I *cos
78 に NaN が返される。
79 .\"O .SH RETURN VALUE
80 .SH 返り値
81 .\"O These functions return
82 .\"O .IR void .
83 これらの関数は
84 .I void
85 を返す。
86 .\"O .SH ERRORS
87 .SH エラー
88 .\"O See
89 .\"O .BR math_error (7)
90 .\"O for information on how to determine whether an error has occurred
91 .\"O when calling these functions.
92 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
93 .BR math_error (7)
94 を参照のこと。
95 .PP
96 .\"O The following errors can occur:
97 以下のエラーが発生する可能性がある。
98 .TP
99 .\"O Domain error: \fIx\fP is an infinity
100 領域エラー (domain error): \fIx\fp が無限大
101 .\" .I errno
102 .\" is set to
103 .\" .BR EDOM .
104 .\"O An invalid floating-point exception
105 .\"O .RB ( FE_INVALID )
106 .\"O is raised.
107 不正 (invalid) 浮動小数点例外
108 .RB ( FE_INVALID )
109 が上がる。
110 .PP
111 .\"O These functions do not set
112 .\"O .IR errno .
113 これらの関数は
114 .I errno
115 を設定しない。
116 .\" FIXME . Is it intentional that these functions do not set errno?
117 .\" sin() and cos() also don't set errno; bugs have been raised for
118 .\" those functions.
119 .\"O .SH VERSIONS
120 .SH バージョン
121 .\"O These functions first appeared in glibc in version 2.1.
122 これらの関数は glibc バージョン 2.1 で初めて登場した。
123 .\"O .SH "CONFORMING TO"
124 .SH 準拠
125 .\"O This function is a GNU extension.
126 この関数は GNU による拡張である。
127 .\"O .SH "SEE ALSO"
128 .SH 関連項目
129 .BR cos (3),
130 .BR sin (3),
131 .BR tan (3)