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

Adjusted limits for Win64 and Sun OS.

[SVN r39881]
This commit is contained in:
John Maddock
2007-10-10 09:28:48 +00:00
parent 991567fe80
commit 3cb6098751
9 changed files with 121 additions and 25 deletions

View File

@@ -143,6 +143,24 @@ void expected_results()
largest_type, // test type(s)
".*Yn.*", // test data group
".*", 30000, 30000); // test function
//
// Solaris version of long double has it's own error rates,
// again just a touch higher than msvc's 64-bit double:
//
add_expected_result(
"GNU.*", // compiler
".*", // stdlib
"Sun.*", // platform
largest_type, // test type(s)
"Y[0N] Mathworld.*", // test data group
".*", 2000, 2000); // test function
add_expected_result(
"GNU.*", // compiler
".*", // stdlib
"Sun.*", // platform
largest_type, // test type(s)
"Y[0N].*", // test data group
".*", 200, 200); // test function
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
if((std::numeric_limits<double>::digits != std::numeric_limits<long double>::digits)

View File

@@ -62,7 +62,7 @@ void expected_results()
".*", // platform
largest_type, // test type(s)
".*large.*", // test data group
".*", 70, 20); // test function
".*", 100, 20); // test function
add_expected_result(
".*", // compiler
".*", // stdlib

View File

@@ -50,7 +50,7 @@ void expected_results()
".*", // platform
".*", // test type(s)
".*Negative.*", // test data group
".*", 250, 40); // test function
".*", 300, 40); // test function
add_expected_result(
".*", // compiler
".*", // stdlib

View File

@@ -132,7 +132,7 @@ void test_spots(T)
static_cast<T>(1.28674092710208810281923019294164707555099052561945725535047e-26L), tolerance);
BOOST_CHECK_CLOSE(
::boost::math::rising_factorial(static_cast<T>(30.25), 21),
static_cast<T>(3.93286957998925490693364184100209193343633629069699964020401e33L), tolerance);
static_cast<T>(3.93286957998925490693364184100209193343633629069699964020401e33L), tolerance * 2);
BOOST_CHECK_CLOSE(
::boost::math::rising_factorial(static_cast<T>(30.25), -21),
static_cast<T>(3.35010902064291983728782493133164809108646650368560147505884e-27L), tolerance);

View File

@@ -110,7 +110,7 @@ void expected_results()
"linux", // platform
largest_type, // test type(s)
"near (1|2|-10)", // test data group
"boost::math::lgamma", 50, 30); // test function
"boost::math::lgamma", 50, 50); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
@@ -131,7 +131,7 @@ void expected_results()
"linux", // platform
"real_concept", // test type(s)
"near (0|-55)", // test data group
"boost::math::(t|l)gamma", 130, 60); // test function
"boost::math::(t|l)gamma", 130, 80); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
@@ -176,7 +176,24 @@ void expected_results()
"HP-UX", // platform
"real_concept", // test type(s)
"tgamma1pm1.*", // test data group
"boost::math::tgamma1pm1", 200, 60); // test function
"boost::math::tgamma1pm1", 200, 80); // test function
//
// Sun OS:
//
add_expected_result(
".*", // compiler
".*", // stdlib
"Sun.*", // platform
largest_type, // test type(s)
"factorials", // test data group
"boost::math::tgamma", 300, 50); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
"Sun.*", // platform
"real_concept" // test type(s)
"factorials", // test data group
"boost::math::tgamma", 300, 50); // test function
//
// Catch all cases come last:
@@ -244,7 +261,7 @@ void expected_results()
".*", // platform
"real_concept", // test type(s)
"near.*", // test data group
"boost::math::tgamma", 60, 30); // test function
"boost::math::tgamma", 80, 60); // test function
add_expected_result(
".*", // compiler
".*", // stdlib

View File

@@ -102,7 +102,7 @@ void expected_results()
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"linux|Mac OS", // platform
"linux|Mac OS|Sun.*", // platform
"double", // test type(s)
"(?i).*large.*", // test data group
".*", 40, 20); // test function
@@ -135,7 +135,37 @@ void expected_results()
largest_type, // test type(s)
"(?i).*large.*", // test data group
".*", 200000, 10000); // test function
//
// Sun OS:
//
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"Sun.*", // platform
largest_type, // test type(s)
"(?i).*large.*", // test data group
".*", 80000, 10000); // test function
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"Sun.*", // platform
largest_type, // test type(s)
"(?i).*small.*", // test data group
".*", 130, 30); // test function
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"Sun.*", // platform
"real_concept", // test type(s)
"(?i).*medium.*", // test data group
".*", 200, 40); // test function
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"Sun.*", // platform
"real_concept", // test type(s)
"(?i).*small.*", // test data group
".*", 130, 30); // test function
//
// MinGW:
//
@@ -204,7 +234,7 @@ void expected_results()
"[^|]*", // platform
"real_concept", // test type(s)
"(?i).*medium.*", // test data group
".*", 100, 50); // test function
".*", 200, 50); // test function
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib

View File

@@ -167,6 +167,37 @@ void expected_results()
"real_concept", // test type(s)
"[^|]*medium[^|]*", // test data group
"[^|]*", 500, 100); // test function
//
// Sun OS:
//
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"Sun.*", // platform
largest_real, // test type(s)
"[^|]*medium[^|]*", // test data group
"[^|]*", 500, 100); // test function
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"Sun.*", // platform
largest_real, // test type(s)
"[^|]*integer[^|]*", // test data group
"[^|]*", 100, 30); // test function
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"Sun.*", // platform
"real_concept", // test type(s)
"[^|]*medium[^|]*", // test data group
"[^|]*", 500, 100); // test function
add_expected_result(
"[^|]*", // compiler
"[^|]*", // stdlib
"Sun.*", // platform
"real_concept", // test type(s)
"[^|]*integer[^|]*", // test data group
"[^|]*", 100, 30); // test function
//
// Mac OS X:

View File

@@ -171,7 +171,7 @@ void expected_results()
"[^|]*", // platform
"real_concept", // test type(s)
"[^|]*small[^|]*", // test data group
"[^|]*", 3500, 500); // test function
"[^|]*", 3700, 500); // test function
//
// Finish off by printing out the compiler/stdlib/platform names,

View File

@@ -81,31 +81,31 @@ void expected_results()
add_expected_result(
".*", // compiler
".*", // stdlib
"linux.*|Mac OS", // platform
"linux.*|Mac OS|Sun.*", // platform
largest_type, // test type(s)
".*", // test data group
".*", 40000, 1000); // test function
".*", // test data group
".*", 40000, 1000); // test function
add_expected_result(
".*", // compiler
".*", // stdlib
"linux.*|Mac OS", // platform
"real_concept", // test type(s)
".*", // test data group
".*", 40000, 1000); // test function
"linux.*|Mac OS|Sun.*", // platform
"real_concept", // test type(s)
".*", // test data group
".*", 40000, 1000); // test function
add_expected_result(
".*mingw.*", // compiler
".*mingw.*", // compiler
".*", // stdlib
".*", // platform
largest_type, // test type(s)
".*", // test data group
".*", 40000, 1000); // test function
".*", // test data group
".*", 40000, 1000); // test function
add_expected_result(
".*mingw.*", // compiler
".*mingw.*", // compiler
".*", // stdlib
".*", // platform
"real_concept", // test type(s)
".*", // test data group
".*", 40000, 1000); // test function
"real_concept", // test type(s)
".*", // test data group
".*", 40000, 1000); // test function
//
// Catch all cases come last: