|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65191 - trunk/libs/math/test
From: pbristow_at_[hidden]
Date: 2010-09-02 07:30:51
Author: pbristow
Date: 2010-09-02 07:30:49 EDT (Thu, 02 Sep 2010)
New Revision: 65191
URL: http://svn.boost.org/trac/boost/changeset/65191
Log:
Treat x == 0 as special case (some platforms find NaN not 0)
Text files modified:
trunk/libs/math/test/test_inverse_gamma_distribution.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Modified: trunk/libs/math/test/test_inverse_gamma_distribution.cpp
==============================================================================
--- trunk/libs/math/test/test_inverse_gamma_distribution.cpp (original)
+++ trunk/libs/math/test/test_inverse_gamma_distribution.cpp 2010-09-02 07:30:49 EDT (Thu, 02 Sep 2010)
@@ -8,7 +8,6 @@
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
-
#ifdef _MSC_VER
# pragma warning (disable : 4224) // nonstandard extension used : formal parameter 'type' was previously defined as a type
// in Boost.test and lexical_cast
@@ -23,14 +22,14 @@
#include <boost/test/floating_point_comparison.hpp> // for BOOST_CHECK_CLOSE_FRACTION
#include <boost/math/distributions/inverse_gamma.hpp> // for inverse_gamma_distribution
-
-#include <boost/math/special_functions/gamma.hpp> // for tgamma for naive pdf.
-
using boost::math::inverse_gamma_distribution;
using ::boost::math::inverse_gamma;
// using ::boost::math::cdf;
// using ::boost::math::pdf;
+#include <boost/math/special_functions/gamma.hpp>
+using boost::math::tgamma; // for naive pdf.
+
#include <iostream>
using std::cout;
using std::endl;
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