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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user