diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-08 14:53:09 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-08 14:53:09 +0000 |
| commit | ae4025f3ade3c5c91ebf6ebed30191719419ddf7 (patch) | |
| tree | e09554b52fbd61c8fbccc80ab6f9e96e57cd1fb5 /missing | |
| parent | 720e110b51afda360cf3db8b4e0dadb1f710c4ed (diff) | |
| download | ruby-ae4025f3ade3c5c91ebf6ebed30191719419ddf7.tar.gz ruby-ae4025f3ade3c5c91ebf6ebed30191719419ddf7.tar.xz ruby-ae4025f3ade3c5c91ebf6ebed30191719419ddf7.zip | |
* missing/lgamma_r.c (lgamma_r): use smaller argument for sin function.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
| -rw-r--r-- | missing/lgamma_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/missing/lgamma_r.c b/missing/lgamma_r.c index 856cc8328..d4402c67b 100644 --- a/missing/lgamma_r.c +++ b/missing/lgamma_r.c @@ -56,7 +56,7 @@ lgamma_r(double x, int *signp) return 1.0/zero; } *signp = (fmod(i, 2.0) != 0.0) ? 1 : -1; - s = sin(PI * x); + s = sin(PI * f); if (s < 0) s = -s; return LOG_PI - log(s) - loggamma(1 - x); } |
