mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
1F1 and 2F0 coverage.
This commit is contained in:
@@ -140,7 +140,7 @@ namespace boost { namespace math { namespace detail {
|
||||
return hypergeometric_1F1_from_function_ratio_negative_b_forwards(a, b, z, pol, log_scaling);
|
||||
}
|
||||
#endif
|
||||
// LCOV_EXCL_END
|
||||
// LCOV_EXCL_STOP
|
||||
}
|
||||
//
|
||||
// We could fall back to Tricomi's approximation if we're in the transition zone
|
||||
|
||||
@@ -84,7 +84,7 @@ void test_spots(T z, const char* type_name)
|
||||
BOOST_IF_CONSTEXPR(std::numeric_limits<T>::has_infinity)
|
||||
{
|
||||
BOOST_CHECK_EQUAL(boost::math::hypergeometric_1F1_regularized(600.25, 102.75, 11512.0), std::numeric_limits<T>::infinity());
|
||||
BOOST_IF_CONSTEXPR(std::numeric_limits<T>::max_exponent == 16384)
|
||||
BOOST_IF_CONSTEXPR(std::numeric_limits<long double>::max_exponent > 16000)
|
||||
{
|
||||
BOOST_CHECK_EQUAL(boost::math::hypergeometric_1F1_regularized(600.25, 102.75, 9985.0), std::numeric_limits<T>::infinity());
|
||||
}
|
||||
|
||||
@@ -104,4 +104,5 @@ void test_spots(T z, const char* type_name)
|
||||
//
|
||||
BOOST_CHECK_EQUAL(boost::math::hypergeometric_2F0(T(0), T(20), T(2)), T(1));
|
||||
BOOST_CHECK_EQUAL(boost::math::hypergeometric_2F0(T(20), T(0), T(2)), T(1));
|
||||
BOOST_CHECK_EQUAL(boost::math::hypergeometric_2F0(T(20), T(10), T(0)), T(1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user