Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66968 - trunk/libs/math/test
From: pbristow_at_[hidden]
Date: 2010-12-02 06:39:57


Author: pbristow
Date: 2010-12-02 06:39:55 EST (Thu, 02 Dec 2010)
New Revision: 66968
URL: http://svn.boost.org/trac/boost/changeset/66968

Log:
Increased tolerance to avoid long double failure
Text files modified:
   trunk/libs/math/test/test_inverse_gaussian.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/math/test/test_inverse_gaussian.cpp
==============================================================================
--- trunk/libs/math/test/test_inverse_gaussian.cpp (original)
+++ trunk/libs/math/test/test_inverse_gaussian.cpp 2010-12-02 06:39:55 EST (Thu, 02 Dec 2010)
@@ -149,7 +149,7 @@
 
   // variance:
   BOOST_CHECK_CLOSE_FRACTION(variance(dist),
- static_cast<RealType>(2.6666666666666666666666666666666666666666666666666666666667L), tolfeweps);
+ static_cast<RealType>(2.6666666666666666666666666666666666666666666666666666666667L), 1000*tolfeweps);
   // std deviation:
   BOOST_CHECK_CLOSE_FRACTION(standard_deviation(dist),
     static_cast<RealType>(1.632993L), 1000 * tolerance);
@@ -330,8 +330,8 @@
   BOOST_CHECK_CLOSE_FRACTION(
     cdf(w0110, 1.), static_cast<double>(1), tolfeweps ); // cdf
   BOOST_CHECK_CLOSE_FRACTION(
- cdf(complement(w0110, 1.)), static_cast<double>(3.2787685715328683e-179), 100* tolfeweps ); // cdf complement
- // Differs because of loss of accuracy
+ cdf(complement(w0110, 1.)), static_cast<double>(3.2787685715328683e-179), 1e6 * tolfeweps ); // cdf complement
+ // Differs because of loss of accuracy.
 
   BOOST_CHECK_CLOSE_FRACTION(
     pdf(w0110, 0.1), static_cast<double>(39.894228040143268), tolfeweps ); // pdf


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