Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49817 - trunk/libs/math/test
From: john_at_[hidden]
Date: 2008-11-17 12:10:47


Author: johnmaddock
Date: 2008-11-17 12:10:46 EST (Mon, 17 Nov 2008)
New Revision: 49817
URL: http://svn.boost.org/trac/boost/changeset/49817

Log:
Fix bug in expected error rates.
Text files modified:
   trunk/libs/math/test/test_constants.cpp | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: trunk/libs/math/test/test_constants.cpp
==============================================================================
--- trunk/libs/math/test/test_constants.cpp (original)
+++ trunk/libs/math/test/test_constants.cpp 2008-11-17 12:10:46 EST (Mon, 17 Nov 2008)
@@ -20,8 +20,8 @@
 {
    // Basic sanity checks for constants.
 
- RealType tolerance = static_cast<RealType>(2e-15); // double
- //cout << "Tolerance for type " << typeid(T).name() << " is " << tolerance << "." << endl;
+ RealType tolerance = boost::math::tools::epsilon<RealType>() * 2; // double
+ std::cout << "Tolerance for type " << typeid(RealType).name() << " is " << tolerance << "." << std::endl;
 
    using namespace boost::math::constants;
    using namespace std; // Help ADL of std exp, log...
@@ -86,3 +86,6 @@
 
 
 
+
+
+


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