Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67210 - trunk/libs/math/test
From: pbristow_at_[hidden]
Date: 2010-12-13 11:32:41


Author: pbristow
Date: 2010-12-13 11:32:38 EST (Mon, 13 Dec 2010)
New Revision: 67210
URL: http://svn.boost.org/trac/boost/changeset/67210

Log:
Actually use sqrt(epsilon) in test
Text files modified:
   trunk/libs/math/test/test_beta_dist.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/math/test/test_beta_dist.cpp
==============================================================================
--- trunk/libs/math/test/test_beta_dist.cpp (original)
+++ trunk/libs/math/test/test_beta_dist.cpp 2010-12-13 11:32:38 EST (Mon, 13 Dec 2010)
@@ -1,7 +1,7 @@
 // test_beta_dist.cpp
 
 // Copyright John Maddock 2006.
-// Copyright Paul A. Bristow 2007, 2009.
+// Copyright Paul A. Bristow 2007, 2009, 2010.
 
 // Use, modification and distribution are subject to the
 // Boost Software License, Version 1.0.
@@ -522,7 +522,7 @@
    BOOST_CHECK_CLOSE_FRACTION(variance(mybeta22), 0.05, tol);
    BOOST_CHECK_CLOSE_FRACTION(mean(mybeta22), 0.5, tol);
    BOOST_CHECK_CLOSE_FRACTION(mode(mybeta22), 0.5, tol);
- BOOST_CHECK_CLOSE_FRACTION(median(mybeta22), 0.5, tol * 1e6); // theoretical maximum accuracy using Brent is sqrt(epsilon).
+ BOOST_CHECK_CLOSE_FRACTION(median(mybeta22), 0.5, sqrt(epsilon)); // tol * 1e6theoretical maximum accuracy using Brent is sqrt(epsilon).
 
    BOOST_CHECK_CLOSE_FRACTION(skewness(mybeta22), 0.0, tol);
    BOOST_CHECK_CLOSE_FRACTION(kurtosis_excess(mybeta22), -144.0 / 168, tol);


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