mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Bessel_I0: decimal number types shouldn't use numeric_limits::digits to judge precision.
This commit is contained in:
@@ -532,7 +532,9 @@ template <typename T>
|
||||
inline T bessel_i0(const T& x)
|
||||
{
|
||||
typedef mpl::int_<
|
||||
std::numeric_limits<T>::digits == 0 ?
|
||||
(std::numeric_limits<T>::radix != 2) ?
|
||||
-1 :
|
||||
(std::numeric_limits<T>::digits == 0) ?
|
||||
0 :
|
||||
std::numeric_limits<T>::digits <= 24 ?
|
||||
24 :
|
||||
|
||||
@@ -555,6 +555,8 @@ template <typename T>
|
||||
inline T bessel_i1(const T& x)
|
||||
{
|
||||
typedef mpl::int_<
|
||||
(std::numeric_limits<T>::radix != 2) ?
|
||||
-1 :
|
||||
std::numeric_limits<T>::digits == 0 ?
|
||||
0 :
|
||||
std::numeric_limits<T>::digits <= 24 ?
|
||||
|
||||
Reference in New Issue
Block a user