1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
.\" Distributed under GPL
.\"
.\" Modified 2003-11-18, aeb: historical remarks
.\"
.\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI
.\" all rights reserved.
.\" historical remarks: Japanese Version Copyright (c) 2005 SAITOH Akira
.\" all rights reserved.
.\" Translated Sun Sep 22 08:34:42 2002
.\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" Updated & Modified Sat Feb 19 05:50:00 2005
.\" by SAITOH Akira <s-akira@users.sourceforge.net>
.\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.TH GAMMA 3 2008-08-05 "GNU" "Linux Programmer's Manual"
.SH ̾
gamma, gammaf, gammal \- ؿ (μп)
.SH
.B #include <math.h>
.sp
.BI "double gamma(double " x ");"
.br
.BI "float gammaf(float " x ");"
.br
.BI "long double gammal(long double " x ");"
.sp
\fI\-lm\fP ǥ롣
.sp
.in -4n
glibc εǽޥ
.RB ( feature_test_macros (7)
):
.in
.sp
.ad l
.BR gamma ():
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
.br
.BR gammaf (),
.BR gammal ():
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
.\" Also seems to work: -std=c99 -D_XOPEN_SOURCE
.ad b
.SH
δؿ侩Ǥ롣ꡢ̤˱
.BR tgamma (3)
.BR lgamma (3)
Ȥȡ
ؿˤĤƤϡ
.BR tgamma (3)
ȤΤȡ
.SS *BSD
4.4BSD libm FreeBSD ΤĤΥСˤϡؿ
.BR gamma ()
ޤޤƤꡢ̤ꥬؿǤ롣
.SS glibc
Glibcϡؿ
.BR gamma ()
ޤǤ뤬
.BR lgamma (3)
Ǥꡢؿμп롣
.SH ֤
.BR lgamma (3)
ȡ
.SH 顼
.BR lgamma (3)
ȡ
.SH
ƥˤäƿۤʤȤŪʷаޤΤᡢ
δؿϤɤɸ൬ʤǤꤵƤʤ
.SH
.SS
4.2BSDˤƤϡؿ
.BR gamma ()
ºݤ˷Τ
.RI ln(|Gamma(| x |)|)
Ǥꡢ
.RI Gamma(| x |)
椬 extern int \fIsigngam\fP ˳ǼƤ
4.3BSDˤʤäƴؿ̾ѹ졢
.BR lgamma (3)
ȤʤꡢΥޥ˥奢ڡǤ
.sp
.in +4n
֤Ĥ gamma ̾褷ؿ˴Ǥ
.in
.sp
ȤҤ٤Ƥ
.\" 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ˤʤäƼ¸졢
.BR gamma ()
Ϥޤ˥ؿ褦ˤʤä
(⤦ \fIsigngam\fP ˤϺѤʤ)
Ȥ줬о줹٤ᡢ
.BR tgamma (3)
ȤΥؿפǤ¸ߤƤΤǤ롣
.\" FreeBSDΥޥ˥奢ˤСgamma()signgamåȤʤ
.\" Ȥlgamma()ƱͤȤ
.\" ޤ4.4BSDǤgamma()ΥؿȤ⤤
.SH Ϣ
.BR lgamma (3),
.BR signgam (3),
.BR tgamma (3)
|