|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-11-01 06:17:49
Author: johnmaddock
Date: 2007-11-01 06:17:49 EDT (Thu, 01 Nov 2007)
New Revision: 40636
URL: http://svn.boost.org/trac/boost/changeset/40636
Log:
Still more tweaks to try and figure out why this fails on Tru64.
Text files modified:
trunk/libs/math/test/test_roots.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Modified: trunk/libs/math/test/test_roots.cpp
==============================================================================
--- trunk/libs/math/test/test_roots.cpp (original)
+++ trunk/libs/math/test/test_roots.cpp 2007-11-01 06:17:49 EDT (Thu, 01 Nov 2007)
@@ -17,6 +17,9 @@
if(failures != boost::unit_test::results_collector.results( boost::unit_test::framework::current_test_case().p_id ).p_assertions_failed)\
{\
std::cerr << "Failure was at row " << i << std::endl;\
+ std::cerr << std::setprecision(35); \
+ std::cerr << "{ " << data[i][0] << " , " << data[i][1] << " , " << data[i][2];\
+ std::cerr << " , " << data[i][3] << " , " << data[i][4] << " , " << data[i][5] << " } " << std::endl;\
}\
}
@@ -257,8 +260,8 @@
BOOST_CHECK_EQUAL(inverse_ibeta_bisect(data[i][0], data[i][1], data[i][5]), value_type(0));
}
else if((1 - data[i][5] > 0.001)
- && (fabs(data[i][5]) >= boost::math::tools::min_value<value_type>())
- && (fabs(data[i][5]) >= boost::math::tools::min_value<double>()))
+ && (fabs(data[i][5]) > 2 * boost::math::tools::min_value<value_type>())
+ && (fabs(data[i][5]) > 2 * boost::math::tools::min_value<double>()))
{
value_type inv = inverse_ibeta_halley(data[i][0], data[i][1], data[i][5]);
BOOST_CHECK_CLOSE_EX(data[i][2], inv, precision, i);
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