1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
6 .\" Distributed under GPL
9 .\"*******************************************************************
11 .\" This file was generated with po4a. Translate the source file.
13 .\"*******************************************************************
15 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI
16 .\" all rights reserved.
17 .\" Translated Tue Sep 9 04:06:20 JST 2003
18 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
19 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
21 .TH SINCOS 3 2008\-08\-11 GNU "Linux Programmer's Manual"
23 sincos, sincosf, sincosl \- 正弦と余弦を同時に計算する
26 \fB#define _GNU_SOURCE\fP /* feature_test_macros(7) 参照 */
27 \fB#include <math.h>\fP
29 \fBvoid sincos(double \fP\fIx\fP\fB, double *\fP\fIsin\fP\fB, double *\fP\fIcos\fP\fB);\fP
31 \fBvoid sincosf(float \fP\fIx\fP\fB, float *\fP\fIsin\fP\fB, float *\fP\fIcos\fP\fB);\fP
33 \fBvoid sincosl(long double \fP\fIx\fP\fB, long double *\fP\fIsin\fP\fB, long double *\fP\fIcos\fP\fB);\fP
38 アプリケーションの中には、同じ角度 \fIx\fP について正弦と余弦の両方の計算が必要なものがある。 この関数は両者を同時に計算し、その結果を
39 \fI*sin\fP と \fI*cos\fP に格納する。
41 \fIx\fP が NaN の場合、 \fI*sin\fP と \fI*cos\fP に NaN が返される。
43 \fIx\fP が正の無限大か負の無限大の場合、 領域エラー (domain error) が発生し、 \fI*sin\fP と \fI*cos\fP に NaN
46 これらの関数は \fIvoid\fP を返す。
48 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7) を参照のこと。
52 領域エラー (domain error): \fIx\fP が無限大である
56 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP) が上がる。
58 .\" FIXME . Is it intentional that these functions do not set errno?
59 .\" sin() and cos() also don't set errno; bugs have been raised for
61 これらの関数は \fIerrno\fP を設定しない。
63 これらの関数は glibc バージョン 2.1 で初めて登場した。
67 \fBcos\fP(3), \fBsin\fP(3), \fBtan\fP(3)
69 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
70 である。プロジェクトの説明とバグ報告に関する情報は
71 http://www.kernel.org/doc/man\-pages/ に書かれている。