.TH GAMMA 3 2008-08-05 "GNU" "Linux Programmer's Manual"
.\"O .SH NAME
.\"O gamma, gammaf, gammal \- (logarithm of the) gamma function
-.SH ̾Á°
-gamma, gammaf, gammal \- ¥¬¥ó¥Þ´Ø¿ô (¤Î¼«Á³Âпô)
+.SH 名前
+gamma, gammaf, gammal \- ガンマ関数 (の自然対数)
.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
.B #include <math.h>
.sp
.BI "double gamma(double " x ");"
.BI "long double gammal(long double " x ");"
.sp
.\"O Link with \fI\-lm\fP.
-\fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
+\fI\-lm\fP でリンクする。
.sp
.in -4n
.\"O Feature Test Macro Requirements for glibc (see
.\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
+glibc 向けの機能検査マクロの要件
.RB ( feature_test_macros (7)
-»²¾È):
+参照):
.in
.sp
.ad l
.RE
.ad b
.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
.\"O These functions are deprecated: instead, use either the
.\"O .BR tgamma (3)
.\"O or the
.\"O .BR lgamma (3)
.\"O functions, as appropriate.
-¤³¤ì¤é¤Î´Ø¿ô¤ÏÈó¿ä¾©¤Ç¤¢¤ë¡£¤½¤ÎÂå¤ï¤ê¡¢¾ìÌ̤˱þ¤¸¤Æ
+これらの関数は非推奨である。その代わり、場面に応じて
.BR tgamma (3)
-¤«
+か
.BR lgamma (3)
-¤ò»È¤¦¤³¤È¡£
+を使うこと。
.\"O For the definition of the Gamma function, see
.\"O .BR tgamma (3).
-¥¬¥ó¥Þ´Ø¿ô¤ÎÄêµÁ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
+ガンマ関数の定義については、
.BR tgamma (3)
-¤ò»²¾È¤Î¤³¤È¡£
+を参照のこと。
.\"O .SS "*BSD version"
-.SS *BSDÈÇ
+.SS *BSD版
.\"O The libm in 4.4BSD and some versions of FreeBSD had a
.\"O .BR gamma ()
.\"O function that computes the Gamma function, as one would expect.
-4.4BSD ¤Î libm ¤È FreeBSD ¤Î¤¤¤¯¤Ä¤«¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤Ï¡¢´Ø¿ô
+4.4BSD の libm と FreeBSD のいくつかのバージョンには、関数
.BR gamma ()
-¤¬´Þ¤Þ¤ì¤Æ¤ª¤ê¡¢´üÂÔÄ̤ꥬ¥ó¥Þ´Ø¿ô¤ò·×»»¤Ç¤¤ë¡£
+が含まれており、期待通りガンマ関数を計算できる。
.\"O .SS "glibc version"
-.SS glibcÈÇ
+.SS glibc版
.\"O Glibc has a
.\"O .BR gamma ()
.\"O function that is equivalent to
.\"O .BR lgamma (3)
.\"O and computes the natural logarithm of the Gamma function.
-Glibc¤Ï¡¢´Ø¿ô
+Glibcは、関数
.BR gamma ()
-¤ò´Þ¤ó¤Ç¤¤¤ë¤¬¡¢¤³¤ì¤Ï
+を含んでいるが、これは
.BR lgamma (3)
-¤ÈÅù²Á¤Ç¤¢¤ê¡¢¥¬¥ó¥Þ´Ø¿ô¤Î¼«Á³Âпô¤ò·×»»¤¹¤ë¡£
+と等価であり、ガンマ関数の自然対数を計算する。
.\"O .SH RETURN VALUE
-.SH ÊÖ¤êÃÍ
+.SH 返り値
.\"O See
.\"O .BR lgamma (3).
.BR lgamma (3)
-¤ò»²¾È¡£
+を参照。
.\"O .SH ERRORS
-.SH ¥¨¥é¡¼
+.SH ã\82¨ã\83©ã\83¼
.\"O See
.\"O .BR lgamma (3).
.BR lgamma (3)
-¤ò»²¾È¡£
+を参照。
.\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 準拠
.\"O Because of historical variations in behavior across systems,
.\"O this function is not specified in any standard.
-¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ¿¶Éñ¤¤¤¬°Û¤Ê¤ë¤È¤¤¤¦Îò»ËŪ¤Ê·Ð°Þ¤Î¤¿¤á¡¢
-¤³¤Î´Ø¿ô¤Ï¤É¤Îɸ½àµ¬³Ê¤Ç¤âµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
+システムによって振舞いが異なるという歴史的な経緯のため、
+この関数はどの標準規格でも規定されていない。
.\"O .SH NOTES
-.SH Ãí°Õ
+.SH 注意
.\"O .SS History
-.SS Îò»Ë
+.SS 歴史
.\"O 4.2BSD had a
.\"O .BR gamma ()
.\"O that computed
.\"O .RI Gamma(| x |)
.\"O in the external integer
.\"O .IR signgam .
-4.2BSD¤Ë¤ª¤¤¤Æ¤Ï¡¢´Ø¿ô
+4.2BSDにおいては、関数
.BR gamma ()
-¤¬¼ÂºÝ¤Ë·×»»¤¹¤ë¤Î¤Ï
+が実際に計算するのは
.RI ln(|Gamma(| x |)|)
-¤Ç¤¢¤ê¡¢
+であり、
.RI Gamma(| x |)
-¤ÎÉä¹æ¤¬ extern int \fIsigngam\fP ¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤¿¡£
+の符号が extern int \fIsigngam\fP に格納されていた。
.\"O In 4.3BSD the name was changed to
.\"O .BR lgamma (3),
.\"O and the man page promises
.\"O and used for the Gamma function"
.\"O .in
.\"O .sp
-4.3BSD¤Ë¤Ê¤Ã¤Æ´Ø¿ô̾¤¬Êѹ¹¤µ¤ì¡¢
+4.3BSDになって関数名が変更され、
.BR lgamma (3)
-¤È¤Ê¤ê¡¢¤½¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ç¤Ï
+となり、そのマニュアルページでは
.sp
.in +4n
-¡Ö¤¤¤Ä¤ÎÆü¤« gamma ¤Î̾¤ÏÉü³è¤·¡¢¥¬¥ó¥Þ´Ø¿ô¤Ë´§¤µ¤ì¤ë¤Ç¤¢¤í¤¦¡×
+「いつの日か gamma の名は復活し、ガンマ関数に冠されるであろう」
.in
.sp
-¤È¤¤¤¦ÀÀ¤¤¤¬½Ò¤Ù¤é¤ì¤Æ¤¤¤¿¡£
+という誓いが述べられていた。
.\"O This did indeed happen in 4.4BSD, where
.\"O .BR gamma ()
.\"O computes the Gamma function (with no effect on
.\" The FreeBSD man page says about gamma() that it is like lgamma()
.\" except that is does not set signgam.
.\" Also, that 4.4BSD has a gamma() that computes the true gamma function.
-¤³¤ì¤Ï4.4BSD¤Ë¤Ê¤Ã¤Æ¼Â¸½¤µ¤ì¡¢
+これは4.4BSDになって実現され、
.BR gamma ()
-¤Ï¤Þ¤µ¤Ë¥¬¥ó¥Þ´Ø¿ô¤ò·×»»¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¡£
-(¤â¤¦ \fIsigngam\fP ¤Ë¤ÏºîÍѤ·¤Ê¤¤¡£)
-¤È¤³¤í¤¬¡¢¤³¤ì¤¬Åо줹¤ë»þ´ü¤¬ÃÙ¤¹¤®¤¿¤¿¤á¡¢
+はまさにガンマ関数を計算するようになった。
+(もう \fIsigngam\fP には作用しない。)
+ところが、これが登場する時期が遅すぎたため、
.BR tgamma (3)
-¤È¤¤¤¦¡ÖËÜÅö¤Î¥¬¥ó¥Þ´Ø¿ô¡×¤¬¤¹¤Ç¤Ë¸ºß¤·¤Æ¤¤¤ë¤Î¤Ç¤¢¤ë¡£
-.\" FreeBSD¤Î¥Þ¥Ë¥å¥¢¥ë¤Ë¤è¤ì¤Ð¡¢gamma()¤Ïsigngam¤ò¥»¥Ã¥È¤·¤Ê¤¤
-.\" ¤³¤È¤ò½ü¤±¤Ðlgamma()¤ÈƱÍͤÀ¤È¤¤¤¦¡£
-.\" ¤Þ¤¿¡¢4.4BSD¤Ç¤Ïgamma()¤ÏËÜÅö¤Î¥¬¥ó¥Þ´Ø¿ô¤ò·×»»¤¹¤ë¤È¤â¤¤¤¦¡£
+という「本当のガンマ関数」がすでに存在しているのである。
+.\" FreeBSDのマニュアルによれば、gamma()はsigngamをセットしない
+.\" ことを除けばlgamma()と同様だという。
+.\" また、4.4BSDではgamma()は本当のガンマ関数を計算するともいう。
.\"O .SH "SEE ALSO"
.\"O .BR lgamma (3),
.\"O .BR signgam (3),
.\"O .BR tgamma (3)
-.SH ´ØÏ¢¹àÌÜ
+.SH 関連項目
.BR lgamma (3),
.BR signgam (3),
.BR tgamma (3)