.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
.\" Distributed under GPL
+.\" %%%LICENSE_END
+.\"
.\" 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>
+.\"
.TH TGAMMA 3 2010-09-20 "GNU" "Linux Programmer's Manual"
.SH NAME
tgamma, tgammaf, tgammal \- true gamma function
Gamma(x) = integral from 0 to infinity of t^(x\-1) e^\-t dt
.sp
It is defined for every real number except for nonpositive integers.
-For nonnegative integral \fIm\fP one has
+For nonnegative integral
+.I m
+one has
.sp
Gamma(m+1) = m!
.sp
-and, more generally, for all \fIx\fP:
+and, more generally, for all
+.IR x :
.sp
Gamma(x+1) = x * Gamma(x)
.sp
-Furthermore, the following is valid for all values of \fIx\fP
+Furthermore, the following is valid for all values of
+.I x
outside the poles:
.sp
Gamma(x) * Gamma(1 \- x) = PI / sin(PI * x)
If
.I x
-is -0 or +0,
+is \-0 or +0,
a pole error occurs,
and the functions return
.BR HUGE_VAL ,
.\" exception for various cases.
.SH VERSIONS
These functions first appeared in glibc in version 2.1.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
C99, POSIX.1-2001.
.SH NOTES
This function had to be called "true gamma function"
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6809
In glibc versions 2.3.3 and earlier,
-an argument of +0 or -0 incorrectly produced a domain error
+an argument of +0 or \-0 incorrectly produced a domain error
.RI ( errno
set to
.B EDOM
and an
.B FE_INVALID
exception raised), rather than a pole error.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR gamma (3),
.BR lgamma (3)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.