1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* missing/lgamma_r.c (lgamma_r): use smaller argument for sin function.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-02-08 14:53:09 +00:00
parent 54b455190b
commit 185849a664
2 changed files with 5 additions and 1 deletions

View file

@ -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);
}