OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[linuxjm/LDP_man-pages.git] / draft / man3 / sincos.3
index 0add054..8655a98 100644 (file)
 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
-.\" Distributed under GPL, 2002-07-27 Walter Harms
 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" Distributed under GPL
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.\"
 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
 .\"         all rights reserved.
 .\" Translated Tue Sep  9 04:06:20 JST 2003
 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\" 
-.TH SINCOS 3  2008-08-11 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O sincos, sincosf, sincosl \- calculate sin and cos simultaneously
-sincos, sincosf, sincosl \- Àµ¸¹¤È;¸¹¤òƱ»þ¤Ë·×»»¤¹¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\"
+.TH SINCOS 3 2008\-08\-11 GNU "Linux Programmer's Manual"
+.SH 名前
+sincos, sincosf, sincosl \- 正弦と余弦を同時に計算する
+.SH 書式
 .nf
-.B #include <math.h>
+\fB#define _GNU_SOURCE\fP         /* feature_test_macros(7) 参照 */
+\fB#include <math.h>\fP
 .sp
-.BI "void sincos(double " x ", double *" sin ", double *" cos );
+\fBvoid sincos(double \fP\fIx\fP\fB, double *\fP\fIsin\fP\fB, double *\fP\fIcos\fP\fB);\fP
 .br
-.BI "void sincosf(float " x ", float *" sin ", float *" cos );
+\fBvoid sincosf(float \fP\fIx\fP\fB, float *\fP\fIsin\fP\fB, float *\fP\fIcos\fP\fB);\fP
 .br
-.BI "void sincosl(long double " x ", long double *" sin ", long double *" cos );
+\fBvoid sincosl(long double \fP\fIx\fP\fB, long double *\fP\fIsin\fP\fB, long double *\fP\fIcos\fP\fB);\fP
 .fi
 .sp
-.\"O Link with \fI\-lm\fP.
-\fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O Several applications need sine and cosine of the same angle
-.\"O .IR x .
-.\"O This function computes both at the same time, and stores the results in
-.\"O .I *sin
-.\"O and
-.\"O .IR *cos .
-¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎÃæ¤Ë¤Ï¡¢Æ±¤¸³ÑÅÙ
-.I x
-¤Ë¤Ä¤¤¤ÆÀµ¸¹¤È;¸¹¤ÎξÊý¤Î·×»»¤¬É¬Íפʤâ¤Î¤¬¤¢¤ë¡£
-¤³¤Î´Ø¿ô¤Ïξ¼Ô¤òƱ»þ¤Ë·×»»¤·¡¢¤½¤Î·ë²Ì¤ò
-.I *sin
-¤È
-.I *cos
-¤Ë³ÊǼ¤¹¤ë¡£
+\fI\-lm\fP でリンクする。
+.SH 説明
+アプリケーションの中には、同じ角度 \fIx\fP について正弦と余弦の両方の計算が必要なものがある。 この関数は両者を同時に計算し、その結果を
+\fI*sin\fP と \fI*cos\fP に格納する。
 
-.\"O If
-.\"O .I x
-.\"O is a NaN,
-.\"O a NaN is returned in
-.\"O .I *sin
-.\"O and
-.\"O .IR *cos .
-.I x
-¤¬ NaN ¤Î¾ì¹ç¡¢
-.I *sin
-¤È
-.I *cos
-¤Ë NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
+\fIx\fP が NaN の場合、 \fI*sin\fP と \fI*cos\fP に NaN が返される。
 
-.\"O If
-.\"O .I x
-.\"O is positive infinity or negative infinity,
-.\"O a domain error occurs, and
-.\"O a NaN is returned in
-.\"O .I *sin
-.\"O and
-.\"O .IR *cos .
-.I x
-¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
-Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
-.I *sin
-¤È
-.I *cos
-¤Ë NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
-.\"O .SH RETURN VALUE
-.SH ÊÖ¤êÃÍ
-.\"O These functions return
-.\"O .IR void .
-¤³¤ì¤é¤Î´Ø¿ô¤Ï
-.I void
-¤òÊÖ¤¹¡£
-.\"O .SH ERRORS
-.SH ¥¨¥é¡¼
-.\"O See
-.\"O .BR math_error (7)
-.\"O for information on how to determine whether an error has occurred
-.\"O when calling these functions.
-¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
-.BR math_error (7)
-¤ò»²¾È¤Î¤³¤È¡£
+\fIx\fP が正の無限大か負の無限大の場合、 領域エラー (domain error) が発生し、 \fI*sin\fP と \fI*cos\fP に NaN
+が返される。
+.SH 返り値
+これらの関数は \fIvoid\fP を返す。
+.SH エラー
+これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
 .PP
-.\"O The following errors can occur:
-°Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
-.TP
-.\"O Domain error: \fIx\fP is an infinity
-Îΰ襨¥é¡¼ (domain error): \fIx\fp ¤¬Ìµ¸ÂÂç
+以下のエラーが発生する可能性がある。
+.TP 
+領域エラー (domain error): \fIx\fP が無限大である
 .\" .I errno
 .\" is set to
 .\" .BR EDOM .
-.\"O An invalid floating-point exception
-.\"O .RB ( FE_INVALID )
-.\"O is raised.
-ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
-.RB ( FE_INVALID )
-¤¬¾å¤¬¤ë¡£
+不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP)  が上がる。
 .PP
-.\"O These functions do not set
-.\"O .IR errno .
-¤³¤ì¤é¤Î´Ø¿ô¤Ï
-.I errno
-¤òÀßÄꤷ¤Ê¤¤¡£
 .\" FIXME . Is it intentional that these functions do not set errno?
 .\" sin() and cos() also don't set errno; bugs have been raised for
 .\" those functions.
-.\"O .SH VERSIONS
-.SH ¥Ð¡¼¥¸¥ç¥ó
-.\"O These functions first appeared in glibc in version 2.1.
-¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-.\"O This function is a GNU extension.
-¤³¤Î´Ø¿ô¤Ï GNU ¤Ë¤è¤ë³ÈÄ¥¤Ç¤¢¤ë¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR cos (3),
-.BR sin (3),
-.BR tan (3),
-.BR feature_test_macros (7)
+これらの関数は \fIerrno\fP を設定しない。
+.SH バージョン
+これらの関数は glibc バージョン 2.1 で初めて登場した。
+.SH 準拠
+この関数は GNU による拡張である。
+.SH 関連項目
+\fBcos\fP(3), \fBsin\fP(3), \fBtan\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。