mirror of
https://github.com/boostorg/math.git
synced 2026-01-27 19:12:08 +00:00
Correct bessel_J test case.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user