diff options
author | Anton Samokhvalov <[email protected]> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/generic/ymath.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) |
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ymath.cpp')
-rw-r--r-- | util/generic/ymath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/ymath.cpp b/util/generic/ymath.cpp index 31270728f46..3355f8fc738 100644 --- a/util/generic/ymath.cpp +++ b/util/generic/ymath.cpp @@ -36,9 +36,9 @@ double LogGammaImpl(double x) { static constexpr double coeff3 = -1.0 / 360.0; static constexpr double coeff1 = 1.0 / 12.0; - if ((x == 1.0) || (x == 2.0)) { + if ((x == 1.0) || (x == 2.0)) { return 0.0; // 0! = 1 - } + } double bonus = 0.0; while (x < 3.0) { bonus -= log(x); |