diff options
Diffstat (limited to 'libstdc++-v3/testsuite/util/testsuite_random.h')
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_random.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/util/testsuite_random.h b/libstdc++-v3/testsuite/util/testsuite_random.h index 3e062ca6bb3..578e94a78bd 100644 --- a/libstdc++-v3/testsuite/util/testsuite_random.h +++ b/libstdc++-v3/testsuite/util/testsuite_random.h @@ -149,7 +149,7 @@ namespace __gnu_test double f = std::lgamma(k + (double)n); double a = std::lgamma(n); double b = std::lgamma(k + 1.0); - + return std::exp(f - a - b) * std::pow(p, n) * std::pow(1 - p, k); } } @@ -161,7 +161,7 @@ namespace __gnu_test return 0.0; else { - double lf = std::lgamma(k + 1.0); + double lf = std::lgamma(k + 1.0); return std::exp(std::log(mu) * k - lf - mu); } } |