Project

General

Profile

Bug #2381 » math.c.diff

math_gamma の修正 - takano32 (Mitsuhiro TAKANO), 11/18/2009 11:29 AM

View differences:

math.c (working copy)
d0 = RFLOAT_VALUE(x);
fracpart = modf(d0, &intpart);
if (fracpart == 0.0 &&
0 < intpart &&
0 < (int)intpart &&
(n = (int)intpart - 1) < numberof(fact_table)) {
return DBL2NUM(fact_table[n]);
}
(1-1/3)