From b684b66e8ab3fb21ac9db27c1fd5b11ae29d4ee4 Mon Sep 17 00:00:00 2001 From: Warren Weckesser Date: Tue, 23 Sep 2025 09:31:17 -0400 Subject: [PATCH] Fix the name in the inverse_chi_squared mean error message. --- include/boost/math/distributions/inverse_chi_squared.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/math/distributions/inverse_chi_squared.hpp b/include/boost/math/distributions/inverse_chi_squared.hpp index 1a3c680d2..ca7e7f87e 100644 --- a/include/boost/math/distributions/inverse_chi_squared.hpp +++ b/include/boost/math/distributions/inverse_chi_squared.hpp @@ -289,7 +289,7 @@ BOOST_MATH_GPU_ENABLED inline RealType mean(const inverse_chi_squared_distributi if(df <= 2) return policies::raise_domain_error( function, - "inverse Chi-Squared distribution only has a mode for degrees of freedom > 2, but got degrees of freedom = %1%.", + "inverse Chi-Squared distribution only has a mean for degrees of freedom > 2, but got degrees of freedom = %1%.", df, Policy()); return (df * scale) / (df - 2); } // mean