diff --git a/doc/distributions/cauchy.qbk b/doc/distributions/cauchy.qbk index 6ae090818a..2d388740a3 100644 --- a/doc/distributions/cauchy.qbk +++ b/doc/distributions/cauchy.qbk @@ -116,7 +116,7 @@ So recall that for `x < 0`: Substituting into the above we get: -[expression p = -atan(1/x) ; x < 0] +[expression p = -atan(1/x) / [pi] ; x < 0] So the procedure is to calculate the cdf for -fabs(x) using the above formula. Note that to factor in the location and scale diff --git a/doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html b/doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html index c3562135a4..9d69b1e0d3 100644 --- a/doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html +++ b/doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html @@ -221,7 +221,7 @@
Substituting into the above we get:

- p = -atan(1/x) ; x < 0 + p = -atan(1/x)/π ; x < 0

So the procedure is to calculate the cdf for -fabs(x) using the diff --git a/include/boost/math/distributions/cauchy.hpp b/include/boost/math/distributions/cauchy.hpp index 4cc93b260b..3a5af69e43 100644 --- a/include/boost/math/distributions/cauchy.hpp +++ b/include/boost/math/distributions/cauchy.hpp @@ -57,7 +57,7 @@ BOOST_MATH_GPU_ENABLED RealType cdf_imp(const cauchy_distribution