From 52af702c887d7fcdddaa2ae39026083258360a20 Mon Sep 17 00:00:00 2001 From: Alejandro Baranek Date: Mon, 29 Apr 2024 15:26:14 -0300 Subject: [PATCH] Update geometric.hpp The proposal is derived from this issue https://github.com/boostorg/math/issues/1126 --- include/boost/math/distributions/geometric.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/math/distributions/geometric.hpp b/include/boost/math/distributions/geometric.hpp index baff0e249f..876d6a1761 100644 --- a/include/boost/math/distributions/geometric.hpp +++ b/include/boost/math/distributions/geometric.hpp @@ -401,7 +401,7 @@ namespace boost } if(k == 0) { - return log(p); // success_fraction + return std::log(p); // success_fraction } //RealType q = 1 - p; // Bad for small p //RealType probability = 1 - std::pow(q, k+1);