Boost logo

Boost-Commit :

From: johnmaddock_at_[hidden]
Date: 2007-06-07 13:34:20


Author: johnmaddock
Date: 2007-06-07 13:34:19 EDT (Thu, 07 Jun 2007)
New Revision: 4484
URL: http://svn.boost.org/trac/boost/changeset/4484

Log:
Oops, previous commit on this file introduced a bug, this is the fix.

Text files modified:
   sandbox/math_toolkit/boost/math/special_functions/beta.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/math_toolkit/boost/math/special_functions/beta.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/special_functions/beta.hpp (original)
+++ sandbox/math_toolkit/boost/math/special_functions/beta.hpp 2007-06-07 13:34:19 EDT (Thu, 07 Jun 2007)
@@ -471,7 +471,7 @@
       result = pow(x, a);
    }
    if(result < tools::min_value<T>())
- return 0; // Safeguard: series can't cope with denorms.
+ return s0; // Safeguard: series can't cope with denorms.
    ibeta_series_t<T> s(a, b, x, result);
    boost::uintmax_t max_iter = BOOST_MATH_MAX_ITER;
    result = boost::math::tools::sum_series(s, boost::math::tools::digits<T>(), max_iter, s0);


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