Skip to content

Commit

Permalink
Update geometric.hpp
Browse files Browse the repository at this point in the history
The proposal is derived from this issue
boostorg#1126
  • Loading branch information
kenarab authored Apr 29, 2024
1 parent 28a5ffb commit 52af702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/math/distributions/geometric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 52af702

Please sign in to comment.