mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Update tests to provide more information, and disable tests that rely on long double overloads when those are known to be inaccurate.
[SVN r31772]
This commit is contained in:
@@ -625,31 +625,31 @@ void check_spots(const T&)
|
||||
BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200);
|
||||
|
||||
result = boost::math::atanh(ct(infinity, -pi));
|
||||
BOOST_CHECK(result.real() == zero);
|
||||
BOOST_CHECK_EQUAL(result.real(), zero);
|
||||
BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200);
|
||||
|
||||
result = boost::math::atanh(ct(-infinity, -pi));
|
||||
BOOST_CHECK(result.real() == zero);
|
||||
BOOST_CHECK_EQUAL(result.real(), zero);
|
||||
BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200);
|
||||
|
||||
result = boost::math::atanh(ct(-infinity, pi));
|
||||
BOOST_CHECK(result.real() == zero);
|
||||
BOOST_CHECK_EQUAL(result.real(), zero);
|
||||
BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200);
|
||||
|
||||
result = boost::math::atanh(ct(infinity, infinity));
|
||||
BOOST_CHECK(result.real() == zero);
|
||||
BOOST_CHECK_EQUAL(result.real(), zero);
|
||||
BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200);
|
||||
|
||||
result = boost::math::atanh(ct(infinity, -infinity));
|
||||
BOOST_CHECK(result.real() == zero);
|
||||
BOOST_CHECK_EQUAL(result.real(), zero);
|
||||
BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200);
|
||||
|
||||
result = boost::math::atanh(ct(-infinity, -infinity));
|
||||
BOOST_CHECK(result.real() == zero);
|
||||
BOOST_CHECK_EQUAL(result.real(), zero);
|
||||
BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200);
|
||||
|
||||
result = boost::math::atanh(ct(-infinity, infinity));
|
||||
BOOST_CHECK(result.real() == zero);
|
||||
BOOST_CHECK_EQUAL(result.real(), zero);
|
||||
BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200);
|
||||
|
||||
if(test_nan)
|
||||
|
||||
Reference in New Issue
Block a user