mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix lgamma doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4cd86dbe9f
commit
f6d8188c54
1 changed files with 1 additions and 1 deletions
2
math.c
2
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.
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue