2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-27 19:12:08 +00:00

[Beta/Gamma]Fix concept failures caused by previous commit.

This commit is contained in:
jzmaddock
2015-01-06 18:06:10 +00:00
parent a6806fb359
commit 9561623736
2 changed files with 2 additions and 1 deletions

View File

@@ -875,7 +875,7 @@ T binomial_ccdf(T n, T k, T x, T y)
// we'll have to sum the terms the old fashioned way:
for(unsigned i = start - 1; i > k; --i)
{
result += pow(x, i) * pow(y, n - i) * boost::math::binomial_coefficient<T>(itrunc(n), itrunc(i));
result += pow(x, (int)i) * pow(y, n - i) * boost::math::binomial_coefficient<T>(itrunc(n), itrunc(i));
}
}
else

View File

@@ -1579,6 +1579,7 @@ T tgamma_ratio_imp(T x, T y, const Policy& pol)
template <class T, class Policy>
T gamma_p_derivative_imp(T a, T x, const Policy& pol)
{
BOOST_MATH_STD_USING
//
// Usual error checks first:
//