Skip to content

Commit

Permalink
fix lgamma doc.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Feb 7, 2008
1 parent 4cd86db commit f6d8188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion math.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand Down

0 comments on commit f6d8188

Please sign in to comment.