Here's a test point where the value of gamma is known exactly. The implementation of tgamma in dsource:mathextra:etcgamma passes this test. But when this code was put into the DMC libraries, it somehow lost some precision in the translation. About 6 bits are wrong. (Further evidence that it's easier to write correct math code in D than in C++ !) The bug does not exist in lgamma. ---- import std.math; const real SQRT_PI = 1.77245385090551602729816748334114518279754945612238L; void main() { assert(tgamma(0.5L) == SQRT_PI); }
Fixed 0.153
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル