|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64964 - trunk/libs/math/test
From: pbristow_at_[hidden]
Date: 2010-08-23 07:45:47
Author: pbristow
Date: 2010-08-23 07:45:37 EDT (Mon, 23 Aug 2010)
New Revision: 64964
URL: http://svn.boost.org/trac/boost/changeset/64964
Log:
Added comment on pch.hpp include needed.
Text files modified:
trunk/libs/math/test/test_gamma_dist.cpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Modified: trunk/libs/math/test/test_gamma_dist.cpp
==============================================================================
--- trunk/libs/math/test/test_gamma_dist.cpp (original)
+++ trunk/libs/math/test/test_gamma_dist.cpp 2010-08-23 07:45:37 EDT (Mon, 23 Aug 2010)
@@ -1,5 +1,5 @@
// Copyright John Maddock 2006.
-// Copyright Paul A. Bristow 2007.
+// Copyright Paul A. Bristow 2007, 2010.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
@@ -11,11 +11,11 @@
// http://en.wikipedia.org/wiki/Gamma_distribution
// http://www.itl.nist.gov/div898/handbook/eda/section3/eda366b.htm
// Also:
-// Weisstein, Eric W. "Gamma Distribution."
-// From MathWorld--A Wolfram Web Resource.
+// Weisstein, Eric W. "Gamma Distribution."
+// From MathWorld--A Wolfram Web Resource.
// http://mathworld.wolfram.com/GammaDistribution.html
-#include <pch.hpp>
+#include <pch.hpp> // include directory libs/math/src/tr1/ is needed.
#include <boost/math/concepts/real_concept.hpp> // for real_concept
#include <boost/test/test_exec_monitor.hpp> // Boost.Test
@@ -23,7 +23,7 @@
#include <boost/math/distributions/gamma.hpp>
using boost::math::gamma_distribution;
-#include <boost/math/tools/test.hpp>
+#include <boost/math/tools/test.hpp>
#include <iostream>
using std::cout;
@@ -96,7 +96,7 @@
// The first tests use values generated by MathCAD,
// and should be accurate to around double precision.
//
- RealType tolerance = (std::max)(RealType(5e-14f), std::numeric_limits<RealType>::epsilon() * 20) * 100;
+ RealType tolerance = (std::max)(RealType(5e-14f), std::numeric_limits<RealType>::epsilon() * 20) * 100;
cout << "Tolerance for type " << typeid(RealType).name() << " is " << tolerance << " %" << endl;
check_gamma(
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