ruby-changes:3902
From: ko1@a...
Date: Thu, 7 Feb 2008 11:41:11 +0900 (JST)
Subject: [ruby-changes:3902] akr - Ruby:r15391 (trunk): fix lgamma doc.
akr 2008-02-07 11:40:57 +0900 (Thu, 07 Feb 2008)
New Revision: 15391
Modified files:
trunk/math.c
Log:
fix lgamma doc.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/math.c?r1=15391&r2=15390&diff_format=u
Index: math.c
===================================================================
--- math.c (revision 15390)
+++ math.c (revision 15391)
@@ -542,7 +542,7 @@
* the sign of gamma of x.
*
* Math.lgamma(x) is same as
- * [Math.log(Math.gamma(x)), Math.gamma(x) < 0 ? -1 : 1]
+ * [Math.log(Math.gamma(x).abs), Math.gamma(x) < 0 ? -1 : 1]
* but avoid overflow by Math.gamma(x) for large x.
*/
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/