2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Fix remaining HP-UX regressions.

[SVN r3591]
This commit is contained in:
John Maddock
2007-01-01 18:59:56 +00:00
parent 47d6f40306
commit 810fc71342
4 changed files with 6 additions and 4 deletions

View File

@@ -132,3 +132,4 @@ compile compile_test/tools_test_inc_test.cpp ;
compile compile_test/tools_toms748_solve_inc_test.cpp ;

View File

@@ -73,14 +73,14 @@ void expected_results()
"HP-UX", // platform
largest_type, // test type(s)
".*RJ.*", // test data group
".*", 250, 50); // test function
".*", 450, 50); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
"HP-UX", // platform
"real_concept", // test type(s)
".*RJ.*", // test data group
".*", 250, 50); // test function
".*", 450, 50); // test function
//
// Catch all cases come last:
//

View File

@@ -222,7 +222,8 @@ void test_spots(RealType T)
, 6 / static_cast<RealType>(8), tol2);
BOOST_CHECK_CLOSE(
median(dist), static_cast<RealType>(23.007748327502412), tol2);
median(dist), static_cast<RealType>(23.007748327502412), // double precision test value
(std::max)(tol2, static_cast<RealType>(std::numeric_limits<double>::epsilon() * 2 * 100))); // 2 eps as persent
// Rely on default definition in derived accessors.
} // template <class RealType>void test_spots(RealType)

View File

@@ -354,7 +354,7 @@ void test_spots(RealType T)
BOOST_CHECK_CLOSE_FRACTION(quantile(tri0q1, static_cast<RealType>(0.0016L)), static_cast<RealType>(0.02L), tol5eps);
BOOST_CHECK_CLOSE_FRACTION(quantile(tri0q1, static_cast<RealType>(0.66666666666666666666666666666666666666666666667L)), static_cast<RealType>(0.5), tol5eps);
BOOST_CHECK_CLOSE_FRACTION(quantile(complement(tri0q1, static_cast<RealType>(0.3333333333333333333333333333333333333333333333333L))), static_cast<RealType>(0.5), tol5eps);
BOOST_CHECK_CLOSE_FRACTION(quantile(tri0q1, static_cast<RealType>(0.9994666666666666666666666666666666666666666666L)), static_cast<RealType>(0.98), 10 * tol5eps);
BOOST_CHECK_CLOSE_FRACTION(quantile(tri0q1, static_cast<RealType>(0.999466666666666666666666666666666666666666666666666L)), static_cast<RealType>(98) / 100, 10 * tol5eps);
BOOST_CHECK_CLOSE_FRACTION(pdf(trim12, 0), static_cast<RealType>(0.533333333333333333333333333333333333333333333L), tol5eps);
BOOST_CHECK_CLOSE_FRACTION(cdf(trim12, 0), static_cast<RealType>(0.466666666666666666666666666666666666666666667L), tol5eps);