|
Boost-Commit : |
From: johnmaddock_at_[hidden]
Date: 2007-06-17 11:43:58
Author: johnmaddock
Date: 2007-06-17 11:43:56 EDT (Sun, 17 Jun 2007)
New Revision: 7084
URL: http://svn.boost.org/trac/boost/changeset/7084
Log:
Added some boost::math:: qualifiers to disambiguate between ::expm1 and boost::math::expm1.
Text files modified:
sandbox/math_toolkit/boost/math/distributions/binomial.hpp | 2 +-
sandbox/math_toolkit/boost/math/distributions/extreme_value.hpp | 2 +-
sandbox/math_toolkit/boost/math/distributions/lognormal.hpp | 4 ++--
sandbox/math_toolkit/boost/math/distributions/poisson.hpp | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
Modified: sandbox/math_toolkit/boost/math/distributions/binomial.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/binomial.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/binomial.hpp 2007-06-17 11:43:56 EDT (Sun, 17 Jun 2007)
@@ -710,7 +710,7 @@
}
else
{
- if (-q <= expm1(log1p(-dist.success_fraction()) * trials))
+ if (-q <= boost::math::expm1(boost::math::log1p(-dist.success_fraction()) * trials))
{ // // q <= cdf(complement(dist, 0)) == pdf(dist, 0)
return 0; // So the only reasonable result is zero.
} // And root finder would fail otherwise.
Modified: sandbox/math_toolkit/boost/math/distributions/extreme_value.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/extreme_value.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/extreme_value.hpp 2007-06-17 11:43:56 EDT (Sun, 17 Jun 2007)
@@ -149,7 +149,7 @@
if(0 == detail::verify_scale_b(BOOST_CURRENT_FUNCTION, b, &result))
return result;
- result = -expm1(-exp((a-c.param)/b));
+ result = -boost::math::expm1(-exp((a-c.param)/b));
return result;
}
Modified: sandbox/math_toolkit/boost/math/distributions/lognormal.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/lognormal.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/lognormal.hpp 2007-06-17 11:43:56 EDT (Sun, 17 Jun 2007)
@@ -209,7 +209,7 @@
if(0 == detail::check_scale(BOOST_CURRENT_FUNCTION, sigma, &result))
return result;
- return expm1(sigma * sigma) * exp(2 * mu + sigma * sigma);
+ return boost::math::expm1(sigma * sigma) * exp(2 * mu + sigma * sigma);
}
template <class RealType>
@@ -250,7 +250,7 @@
if(0 == detail::check_scale(BOOST_CURRENT_FUNCTION, sigma, &result))
return result;
- return (ess + 2) * sqrt(expm1(ss));
+ return (ess + 2) * sqrt(boost::math::expm1(ss));
}
template <class RealType>
Modified: sandbox/math_toolkit/boost/math/distributions/poisson.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/poisson.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/poisson.hpp 2007-06-17 11:43:56 EDT (Sun, 17 Jun 2007)
@@ -391,7 +391,7 @@
}
if (k == 0)
{ // Avoid repeated checks on k and mean in gamma_p.
- return -expm1(-mean);
+ return -boost::math::expm1(-mean);
}
// Unlike un-complemented cdf (sum from 0 to k),
// can't use finite sum from k+1 to infinity for small integral k,
@@ -461,7 +461,7 @@
return result;
}
}
- if (-q <= expm1(-dist.mean()))
+ if (-q <= boost::math::expm1(-dist.mean()))
{ // if q <= cdf(complement for 0 events, then quantile must be zero.
return 0;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk