OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / gamma.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
5 .\" %%%LICENSE_END
6 .\"
7 .\" Modified 2003-11-18, aeb: historical remarks
8 .\"
9 .\"*******************************************************************
10 .\"
11 .\" This file was generated with po4a. Translate the source file.
12 .\"
13 .\"*******************************************************************
14 .TH GAMMA 3 2008\-08\-05 GNU "Linux Programmer's Manual"
15 .SH 名前
16 gamma, gammaf, gammal \- ガンマ関数 (の自然対数)
17 .SH 書式
18 \fB#include <math.h>\fP
19 .sp
20 \fBdouble gamma(double \fP\fIx\fP\fB);\fP
21 .br
22 \fBfloat gammaf(float \fP\fIx\fP\fB);\fP
23 .br
24 \fBlong double gammal(long double \fP\fIx\fP\fB);\fP
25 .sp
26 \fI\-lm\fP でリンクする。
27 .sp
28 .in -4n
29 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
30 .in
31 .sp
32 .ad l
33 \fBgamma\fP():
34 .RS 4
35 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
36 .RE
37 \fBgammaf\fP(), \fBgammal\fP():
38 .RS 4
39 .\" Also seems to work: -std=c99 -D_XOPEN_SOURCE
40 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
41 .RE
42 .ad b
43 .SH 説明
44 これらの関数は非推奨である。その代わり、場面に応じて \fBtgamma\fP(3)  か \fBlgamma\fP(3)  を使うこと。
45
46 ガンマ関数の定義については、 \fBtgamma\fP(3)  を参照のこと。
47 .SS *BSD版
48 4.4BSD の libm と FreeBSD のいくつかのバージョンには、関数 \fBgamma\fP()
49 が含まれており、期待通りガンマ関数を計算できる。
50 .SS glibc版
51 Glibcは、関数 \fBgamma\fP()  を含んでいるが、これは \fBlgamma\fP(3)  と等価であり、ガンマ関数の自然対数を計算する。
52 .SH 返り値
53 \fBlgamma\fP(3)  を参照。
54 .SH エラー
55 \fBlgamma\fP(3)  を参照。
56 .SH 準拠
57 システムによって振舞いが異なるという歴史的な経緯のため、 この関数はどの標準規格でも規定されていない。
58 .SH 注意
59 .SS 歴史
60 4.2BSDにおいては、関数 \fBgamma\fP()  が実際に計算するのは ln(|Gamma(|\fIx\fP|)|)  であり、
61 Gamma(|\fIx\fP|)  の符号が extern int \fIsigngam\fP に格納されていた。 4.3BSDになって関数名が変更され、
62 \fBlgamma\fP(3)  となり、そのマニュアルページでは
63 .sp
64 .in +4n
65 "「いつの日か gamma の名は復活し、ガンマ関数に冠されるであろう」"
66 .in
67 .sp
68 .\" The FreeBSD man page says about gamma() that it is like lgamma()
69 .\" except that is does not set signgam.
70 .\" Also, that 4.4BSD has a gamma() that computes the true gamma function.
71 という誓いが述べられていた。 これは4.4BSDになって実現され、 \fBgamma\fP()  はまさにガンマ関数を計算するようになった。 (もう
72 \fIsigngam\fP には作用しない。)  ところが、これが登場する時期が遅すぎたため、 \fBtgamma\fP(3)
73 という「本当のガンマ関数」がすでに存在しているのである。
74 .SH 関連項目
75 \fBlgamma\fP(3), \fBsigngam\fP(3), \fBtgamma\fP(3)
76 .SH この文書について
77 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
78 である。プロジェクトの説明とバグ報告に関する情報は
79 http://www.kernel.org/doc/man\-pages/ に書かれている。