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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
.\" Distributed under GPL
.\" Based on glibc infopages
.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
.\" <mtk.manpages@gmail.com>
.\" Modified 2004-11-15, fixed error noted by Fabian Kreutz
.\" <kreutz@dbs.uni-hannover.de>
.\"
.\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI
.\" all rights reserved.
.\" Translated Sun Sep 22 09:31:52 2002
.\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" Updated & Modified Sat Feb 12 12:00:00 2005
.\" by SAITOH Akira <s-akira@users.sourceforge.net>
.\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.TH TGAMMA 3 2008-08-11 "GNU" "Linux Programmer's Manual"
.SH ̾
tgamma, tgammaf, tgammal \- Υؿ
.SH
.B #include <math.h>
.sp
.BI "double tgamma(double " x );
.br
.BI "float tgammaf(float " x );
.br
.BI "long double tgammal(long double " x );
.sp
\fI\-lm\fP ǥ롣
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR tgamma (),
.BR tgammaf (),
.BR tgammal ():
_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
.I cc\ -std=c99
.ad b
.SH
ؿϰʲΤ褦:
.sp
Gamma(x) = t^(x\-1) e^\-t dt 0 ̵ޤǤʬ
.sp
δؿǤʤ٤Ƥμ¿ФƤ롣
\fIm\fP ˴ؤơʲΩ:
.sp
Gamma(m+1) = m!
.sp
Ūˤϡ٤Ƥ \fIx\fP ˴ؤưʲΩ:
.sp
Gamma(x+1) = x * Gamma(x)
.sp
ˡˤ٤Ƥ \fIx\fP ǼΩ:
.sp
Gamma(x) * Gamma(1 \- x) = PI / sin(PI * x)
.PP
.SH ֤
ȡδؿ Gamma(x) ֤
.I x
NaN ξ硢NaN ֤롣
.I x
̵ξ硢̵礬֤롣
.I x
̵ξ硢ΰ襨顼 (domain error) ȯ
NaN ֤롣
̤Сե硢ϰϥ顼 (range error) ȯ
ƴؿϤ줾
.BR HUGE_VAL ,
.BR HUGE_VALF ,
.BR HUGE_VALL ,
֤κݡŪ椬Ϳ롣
̤ե硢ϰϥ顼 (range error) ȯ
ؿ 0 ֤κݡŪ椬Ϳ롣
.I x
\-0 +0 ξ硢˥顼 (pole error) ȯ
ƴؿϤ줾
.BR HUGE_VAL ,
.BR HUGE_VALF ,
.BR HUGE_VALL ,
֤
0 Ʊ椬Ϳ롣
.SH 顼
δؿƤӽФݤ˥顼ȯȽˡˤĤƤξ
.BR math_error (7)
ȤΤȡ
.PP
ʲΥ顼ȯǽ롣
.TP
ΰ襨顼: \fIx\fP ̵
.\" FIXME . errno is not set to EDOM for x == -inf
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6809
.I errno
.B EDOM
ꤵ롣
(invalid) ư㳰
.RB ( FE_INVALID )
夬 (֥Хפ)
.TP
˥顼 (pole error): \fIx\fP +0 \-0
.I errno
.B ERANGE
ꤵ롣
0 ˤ (divide-by-zero) ư㳰
.RB ( FE_DIVBYZERO )
夬롣
.TP
ϰϥ顼 (range error): ̤ΥСե
.I errno
.B ERANGE
ꤵ롣
Сեư㳰
.RB ( FE_OVERFLOW )
夬롣
.PP
glibc ǤϡC99 POSIX.1-2001 ǵꤵƤʤʲΥ顼
롣
.TP
ϰϥ顼 (range error): ̤Υե
.\" e.g., tgamma(-172.5) on glibc 2.8/x86-32
.\" .I errno
.\" is set to
.\" .BR ERANGE .
եư㳰
.RB ( FE_UNDERFLOW )
夬롣
ξ
.I errno
ꤵʤ
.\" FIXME . Is it intentional that errno is not set:
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6810
.\"
.\" glibc (as at 2.8) also supports and an inexact
.\" exception for various cases.
.SH С
δؿ glibc С 2.1 ǽо줷
.SH
C99, POSIX.1-2001.
.SH
δؿ (true) ؿפȸƤФʤФʤʤä
ʤʤ顢¾֤ͤ
.BR gamma (3)
ȤؿǤ¸ߤ뤫Ǥ (ܺ٤ˤĤƤ
.BR gamma (3)
)
.SH Х
.I x
̵ξ硢
.I errno
ꤵʤ
.RB ( EDOM
ꤵ٤Ǥ)
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6809
glibc С 2.3.3 Ǥϡ
+0 \-0 Ϥȡ˥顼ǤϤʤ
ΰ襨顼ְäȯƤ
(ΰ襨顼ξ硢
.I errno
.B EDOM
ꤵ졢
.B FE_INVALID
㳰ȯ)
.SH Ϣ
.BR gamma (3),
.BR lgamma (3)
|