2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Loosen tolerance on tanh_sinh.

This commit is contained in:
Nick
2021-04-10 10:06:15 -04:00
committed by GitHub
parent 858e8a66e9
commit 2553ecf00e

View File

@@ -754,7 +754,7 @@ void test_2_arg()
{
return tc < 0 ? 1 / boost::math::cbrt(t * (1-t)) : 1 / boost::math::cbrt(t * tc);
}, 0, 1);
BOOST_CHECK_CLOSE_FRACTION(Q, boost::math::pow<2>(boost::math::tgamma(Real(2) / 3)) / boost::math::tgamma(Real(4) / 3), tol * 3);
BOOST_CHECK_CLOSE_FRACTION(Q, boost::math::pow<2>(boost::math::tgamma(Real(2) / 3)) / boost::math::tgamma(Real(4) / 3), tol * 4);
//
// We can do the same thing with ((1+x)(1-x))^-N ; N < 1
//