2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-09 11:12:39 +00:00

Quadrature: Fix error in test case.

This commit is contained in:
jzmaddock
2017-08-19 12:47:34 +01:00
parent b15addd7b7
commit 8aaf2d5e43

View File

@@ -446,7 +446,7 @@ void test_crc()
Real p = pn / 100;
auto f = [&](Real x)->Real
{
return x > 1000 * boost::math::tools::log_max_value<Real>() ? 0 : exp(-x * (1 - p) + p * log(-boost::math::expm1(-x)));
return x > 1000 * boost::math::tools::log_max_value<Real>() ? Real(0) : Real(exp(-x * (1 - p) + p * log(-boost::math::expm1(-x))));
};
Q = integrator.integrate(f, get_convergence_tolerance<Real>(), &error, &L1);
Q_expected = 1 / boost::math::sinc_pi(p*pi<Real>());