Closed hypcos closed 3 months ago
I tested these changes and the corrected f_gamma
function appears to be much more accurate (with a relative error around 10-14 instead of 10-6).
Your fix has been added to my pull request. Hopefully that means it'll get fixed soon.
Fixed.
This looks like the series expansion of ln(n!), but some coefficients are wrong: The
l = l + 1 / (360 * np);
should bel = l - 1 / (360 * np);
Thel = l + 1 / (1680 * np);
should bel = l - 1 / (1680 * np);
Thel = l + 691 / (360360 * np);
should bel = l - 691 / (360360 * np);
Thel = l + 3617 / (122400 * np);
should bel = l - 3617 / (122400 * np);
I guess the mistake also exists in other files thanbreak_eternity.js