summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-07 02:40:57 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-07 02:40:57 +0000
commit5eceedd5d7902d9d005ffb73d8b4c43b10e27265 (patch)
tree17c7f9580f233b54e57581b1597b51361867f5f0
parentc820c969c42683197039bab5cf03b5c3419d33f7 (diff)
downloadruby-5eceedd5d7902d9d005ffb73d8b4c43b10e27265.tar.gz
ruby-5eceedd5d7902d9d005ffb73d8b4c43b10e27265.tar.xz
ruby-5eceedd5d7902d9d005ffb73d8b4c43b10e27265.zip
fix lgamma doc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index 3a4ed735a..e45771634 100644
--- a/math.c
+++ b/math.c
@@ -542,7 +542,7 @@ math_gamma(VALUE obj, VALUE x)
* 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.
*/