Skip to content

Commit

Permalink
Correct bessel_J test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzmaddock committed Jan 22, 2024
1 parent 7431f81 commit bc97599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_bessel_j.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ void test_bessel(T, const char* name)
//
// special cases for code coverage:
//
BOOST_CHECK_EQUAL(boost::math::sph_bessel(200, T(0.5)), T(3.070403008048099934928128420285169174541102108657574230431e-497L));
T tolerance = boost::math::tools::epsilon<T>() * 200;
BOOST_CHECK_CLOSE_FRACTION(boost::math::sph_bessel(200, T(0.5)), T(3.070403008048099934928128420285169174541102108657574230431e-497L), tolerance);
BOOST_MATH_CHECK_THROW(boost::math::sph_bessel(2, T(-2.0)), std::domain_error);
}

0 comments on commit bc97599

Please sign in to comment.