From bfa206d12c6800ecf9d8eda1007c9bdb7c961719 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Fri, 3 Nov 2023 08:18:03 +0100 Subject: [PATCH 1/2] Losen tolerance on cohen acceleration --- test/cohen_acceleration_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cohen_acceleration_test.cpp b/test/cohen_acceleration_test.cpp index ad70c3f825..4269083050 100644 --- a/test/cohen_acceleration_test.cpp +++ b/test/cohen_acceleration_test.cpp @@ -71,7 +71,7 @@ void test_divergent() { auto g = Divergent(); Real x = -cohen_acceleration(g); - CHECK_ULP_CLOSE(log(pi()/2)/2, x, (std::numeric_limits::digits > 100 ? 350 : 135)); + CHECK_ULP_CLOSE(log(pi()/2)/2, x, (std::numeric_limits::digits > 100 ? 350 : 150)); } int main() From d298a15b1d08fb778a06eb701053fcc34133d363 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Fri, 3 Nov 2023 08:27:30 +0100 Subject: [PATCH 2/2] Reorder macro and add missing include --- include/boost/math/special_functions/trunc.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/math/special_functions/trunc.hpp b/include/boost/math/special_functions/trunc.hpp index 7ac33a92d3..8b4f64eb65 100644 --- a/include/boost/math/special_functions/trunc.hpp +++ b/include/boost/math/special_functions/trunc.hpp @@ -16,10 +16,11 @@ #include #include #include +#include #ifndef BOOST_NO_CXX17_IF_CONSTEXPR -#include # if !defined(BOOST_MATH_NO_CONSTEXPR_DETECTION) +# include # define BOOST_MATH_HAS_CONSTEXPR_LDEXP # endif #endif