X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=original%2Fman3%2Ftgamma.3;h=e0b5e183d5ac2ac02f257d426d79f856d8c7a2a0;hb=110dba020f489b75aff2497105f7970c05e2b87c;hp=013cdc1e96d555af92916c86cc4b2e7f3bdbfcc3;hpb=c03a7a882c608ebf399d1b044ce7a6daa922351a;p=linuxjm%2FLDP_man-pages.git diff --git a/original/man3/tgamma.3 b/original/man3/tgamma.3 index 013cdc1e..e0b5e183 100644 --- a/original/man3/tgamma.3 +++ b/original/man3/tgamma.3 @@ -1,10 +1,15 @@ .\" 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 .\" .\" Modified 2004-11-15, fixed error noted by Fabian Kreutz .\" +.\" .TH TGAMMA 3 2010-09-20 "GNU" "Linux Programmer's Manual" .SH NAME tgamma, tgammaf, tgammal \- true gamma function @@ -42,15 +47,19 @@ The Gamma function is defined by 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) @@ -87,7 +96,7 @@ and the functions return 0, with the correct mathematical sign. If .I x -is -0 or +0, +is \-0 or +0, a pole error occurs, and the functions return .BR HUGE_VAL , @@ -150,7 +159,7 @@ is not set for this case. .\" 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" @@ -169,13 +178,22 @@ is not set (it should be set to .\" 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/.