1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .\" Modified 2003-11-18, aeb: historical remarks
6 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI
7 .\" all rights reserved.
8 .\" historical remarks: Japanese Version Copyright (c) 2005 SAITOH Akira
9 .\" all rights reserved.
10 .\" Translated Sun Sep 22 08:34:42 2002
11 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
12 .\" Updated & Modified Sat Feb 19 05:50:00 2005
13 .\" by SAITOH Akira <s-akira@users.sourceforge.net>
14 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
16 .TH GAMMA 3 2008-08-05 "GNU" "Linux Programmer's Manual"
18 .\"O gamma, gammaf, gammal \- (logarithm of the) gamma function
20 gamma, gammaf, gammal \- ガンマ関数 (の自然対数)
25 .BI "double gamma(double " x ");"
27 .BI "float gammaf(float " x ");"
29 .BI "long double gammal(long double " x ");"
31 .\"O Link with \fI\-lm\fP.
35 .\"O Feature Test Macro Requirements for glibc (see
36 .\"O .BR feature_test_macros (7)):
38 .RB ( feature_test_macros (7)
45 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
50 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
51 .\" Also seems to work: -std=c99 -D_XOPEN_SOURCE
56 .\"O These functions are deprecated: instead, use either the
60 .\"O functions, as appropriate.
61 これらの関数は非推奨である。その代わり、場面に応じて
67 .\"O For the definition of the Gamma function, see
72 .\"O .SS "*BSD version"
74 .\"O The libm in 4.4BSD and some versions of FreeBSD had a
76 .\"O function that computes the Gamma function, as one would expect.
77 4.4BSD の libm と FreeBSD のいくつかのバージョンには、関数
79 が含まれており、期待通りガンマ関数を計算できる。
80 .\"O .SS "glibc version"
84 .\"O function that is equivalent to
86 .\"O and computes the natural logarithm of the Gamma function.
91 と等価であり、ガンマ関数の自然対数を計算する。
104 .\"O .SH "CONFORMING TO"
106 .\"O Because of historical variations in behavior across systems,
107 .\"O this function is not specified in any standard.
108 システムによって振舞いが異なるという歴史的な経緯のため、
109 この関数はどの標準規格でも規定されていない。
117 .\"O .RI ln(|Gamma(| x |)|),
118 .\"O leaving the sign of
119 .\"O .RI Gamma(| x |)
120 .\"O in the external integer
125 .RI ln(|Gamma(| x |)|)
128 の符号が extern int \fIsigngam\fP に格納されていた。
129 .\"O In 4.3BSD the name was changed to
131 .\"O and the man page promises
134 .\"O "At some time in the future the name gamma will be rehabilitated
135 .\"O and used for the Gamma function"
143 「いつの日か gamma の名は復活し、ガンマ関数に冠されるであろう」
147 .\"O This did indeed happen in 4.4BSD, where
149 .\"O computes the Gamma function (with no effect on
151 .\"O However, this came too late, and we now have
153 .\"O the "true gamma" function.
154 .\" The FreeBSD man page says about gamma() that it is like lgamma()
155 .\" except that is does not set signgam.
156 .\" Also, that 4.4BSD has a gamma() that computes the true gamma function.
159 はまさにガンマ関数を計算するようになった。
160 (もう \fIsigngam\fP には作用しない。)
161 ところが、これが登場する時期が遅すぎたため、
163 という「本当のガンマ関数」がすでに存在しているのである。
164 .\" FreeBSDのマニュアルによれば、gamma()はsigngamをセットしない
165 .\" ことを除けばlgamma()と同様だという。
166 .\" また、4.4BSDではgamma()は本当のガンマ関数を計算するともいう。
169 .\"O .BR signgam (3),