2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

BOOST_ASSERT->BOOST_MATH_ASSERT

Plus trivial coverage markup.
This commit is contained in:
jzmaddock
2024-02-25 12:33:19 +00:00
parent 67ad7fc22d
commit 7b4e2ddce0
3 changed files with 3 additions and 3 deletions

View File

@@ -777,7 +777,7 @@ BOOST_FORCEINLINE typename tools::promote_args<T>::type ellint_1(T k)
// Elliptic integral (Legendre form) of the first kind
template <class T1, class T2, class Policy>
BOOST_FORCEINLINE typename tools::promote_args<T1, T2>::type ellint_1(T1 k, T2 phi, const Policy& pol)
BOOST_FORCEINLINE typename tools::promote_args<T1, T2>::type ellint_1(T1 k, T2 phi, const Policy& pol) // LCOV_EXCL_LINE gcc misses this but sees the function body, strange!
{
typedef typename tools::promote_args<T1, T2>::type result_type;
typedef typename policies::evaluation<result_type, Policy>::type value_type;

View File

@@ -737,7 +737,7 @@ BOOST_FORCEINLINE typename tools::promote_args<T1, T2>::type ellint_2(T1 k, T2 p
}
template <class T1, class T2, class Policy>
BOOST_FORCEINLINE typename tools::promote_args<T1, T2>::type ellint_2(T1 k, T2 phi, const Policy& pol)
BOOST_FORCEINLINE typename tools::promote_args<T1, T2>::type ellint_2(T1 k, T2 phi, const Policy& pol) // LCOV_EXCL_LINE gcc misses this but sees the function body, strange!
{
typedef typename tools::promote_args<T1, T2>::type result_type;
typedef typename policies::evaluation<result_type, Policy>::type value_type;

View File

@@ -106,7 +106,7 @@ T ellint_pi_imp(T v, T phi, T k, T vc, const Policy& pol)
if(fabs(phi) > 1 / tools::epsilon<T>())
{
// Invalid for v > 1, this case is caught above since v > 1 implies 1/v < sin^2(phi)
BOOST_ASSERT(v <= 1);
BOOST_MATH_ASSERT(v <= 1);
//
// Phi is so large that phi%pi is necessarily zero (or garbage),
// just return the second part of the duplication formula: