Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77782 - sandbox/big_number/libs/multiprecision/test/math
From: john_at_[hidden]
Date: 2012-04-05 13:20:00


Author: johnmaddock
Date: 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
New Revision: 77782
URL: http://svn.boost.org/trac/boost/changeset/77782

Log:
Fix MPFR error rates on Linux x86 64
Text files modified:
   sandbox/big_number/libs/multiprecision/test/math/test_bessel_j.cpp | 23 ++++++++++++++++++++++-
   sandbox/big_number/libs/multiprecision/test/math/test_bessel_y.cpp | 14 ++++++++++++++
   sandbox/big_number/libs/multiprecision/test/math/test_beta.cpp | 11 +++++++++--
   sandbox/big_number/libs/multiprecision/test/math/test_binomial_coeff.cpp | 2 +-
   sandbox/big_number/libs/multiprecision/test/math/test_digamma.cpp | 7 +++++++
   sandbox/big_number/libs/multiprecision/test/math/test_ellint_1.cpp | 7 +++++++
   sandbox/big_number/libs/multiprecision/test/math/test_ellint_2.cpp | 2 +-
   sandbox/big_number/libs/multiprecision/test/math/test_ellint_3.cpp | 7 +++++++
   sandbox/big_number/libs/multiprecision/test/math/test_gamma.cpp | 2 +-
   sandbox/big_number/libs/multiprecision/test/math/test_ibeta.cpp | 7 +++++++
   sandbox/big_number/libs/multiprecision/test/math/test_ibeta_inv_1.cpp | 7 +++++++
   sandbox/big_number/libs/multiprecision/test/math/test_ibeta_inv_ab_4.cpp | 2 +-
   sandbox/big_number/libs/multiprecision/test/math/test_igamma_inv.cpp | 9 ++++++++-
   sandbox/big_number/libs/multiprecision/test/math/test_tgamma_ratio.cpp | 9 ++++++++-
   sandbox/big_number/libs/multiprecision/test/math/test_zeta.cpp | 2 +-
   15 files changed, 101 insertions(+), 10 deletions(-)

Modified: sandbox/big_number/libs/multiprecision/test/math/test_bessel_j.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_bessel_j.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_bessel_j.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -57,6 +57,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*J0.*Tricky.*", // test data group
+ ".*", 10000000000L, 5000000000L); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*J0.*Tricky.*", // test data group
       ".*", 400000000, 400000000); // test function
@@ -64,6 +71,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*J1.*Tricky.*", // test data group
+ ".*", 1000000000L, 500000000L); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*J1.*Tricky.*", // test data group
       ".*", 10000000, 5000000); // test function
@@ -78,9 +92,16 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*(JN|j).*|.*Tricky.*", // test data group
+ ".*", 70000, 7000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*(JN|j).*|.*Tricky.*", // test data group
- ".*", 4000, 700); // test function
+ ".*", 7000, 3000); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib

Modified: sandbox/big_number/libs/multiprecision/test/math/test_bessel_y.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_bessel_y.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_bessel_y.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -56,6 +56,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*(Y[nv]|y).*Random.*", // test data group
+ ".*", 200000, 10000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*(Y[nv]|y).*Random.*", // test data group
       ".*", 70000, 4000); // test function
@@ -77,6 +84,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*Yn.*", // test data group
+ ".*", 200000, 70000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*Yn.*", // test data group
       ".*", 1700, 600); // test function

Modified: sandbox/big_number/libs/multiprecision/test/math/test_beta.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_beta.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_beta.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -70,6 +70,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ "Beta Function: Small.*", // test data group
+ "boost::math::beta", 200, 200); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       "Beta Function: Small.*", // test data group
       "boost::math::beta", 8, 5); // test function
@@ -79,14 +86,14 @@
       ".*", // platform
       ".*", // test type(s)
       "Beta Function: Medium.*", // test data group
- "boost::math::beta", 160, 35); // test function
+ "boost::math::beta", 260, 200); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
       ".*", // test type(s)
       "Beta Function: Divergent.*", // test data group
- "boost::math::beta", 30, 6); // test function
+ "boost::math::beta", 200, 200); // test function
    //
    // Finish off by printing out the compiler/stdlib/platform names,
    // we do this to make it easier to mark up expected error rates.

Modified: sandbox/big_number/libs/multiprecision/test/math/test_binomial_coeff.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_binomial_coeff.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_binomial_coeff.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -65,7 +65,7 @@
       ".*", // platform
       ".*mpfr_float_backend<18>.*", // test type(s)
       ".*", // test data group
- ".*", 500, 100); // test function
+ ".*", 500, 150); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib

Modified: sandbox/big_number/libs/multiprecision/test/math/test_digamma.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_digamma.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_digamma.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -52,6 +52,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*Negative.*", // test data group
+ ".*", 20000, 2000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*Negative.*", // test data group
       ".*", 350, 40); // test function

Modified: sandbox/big_number/libs/multiprecision/test/math/test_ellint_1.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_ellint_1.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_ellint_1.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -52,6 +52,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*", // test data group
+ ".*", 1000, 200); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*", // test data group
       ".*", 40, 20); // test function

Modified: sandbox/big_number/libs/multiprecision/test/math/test_ellint_2.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_ellint_2.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_ellint_2.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -54,7 +54,7 @@
       ".*", // platform
       ".*", // test type(s)
       ".*", // test data group
- ".*", 60, 30); // test function
+ ".*", 300, 200); // test function
    //
    // Finish off by printing out the compiler/stdlib/platform names,
    // we do this to make it easier to mark up expected error rates.

Modified: sandbox/big_number/libs/multiprecision/test/math/test_ellint_3.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_ellint_3.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_ellint_3.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -59,6 +59,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*", // test data group
+ ".*", 10000, 3000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*Large.*", // test data group
       ".*", 75, 40); // test function

Modified: sandbox/big_number/libs/multiprecision/test/math/test_gamma.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_gamma.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_gamma.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -75,7 +75,7 @@
       ".*", // platform
       ".*", // test type(s)
       "near.*", // test data group
- "boost::math::tgamma", 80, 60); // test function
+ "boost::math::tgamma", 200, 100); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib

Modified: sandbox/big_number/libs/multiprecision/test/math/test_ibeta.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_ibeta.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_ibeta.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -62,6 +62,13 @@
       "[^|]*", // compiler
       "[^|]*", // stdlib
       "[^|]*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ "(?i).*small.*", // test data group
+ ".*", 400, 200); // test function
+ add_expected_result(
+ "[^|]*", // compiler
+ "[^|]*", // stdlib
+ "[^|]*", // platform
       ".*", // test type(s)
       "(?i).*small.*", // test data group
       ".*", 90, 25); // test function

Modified: sandbox/big_number/libs/multiprecision/test/math/test_ibeta_inv_1.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_ibeta_inv_1.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_ibeta_inv_1.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -55,6 +55,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*", // test data group
+ ".*", 20000000, 2000000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*", // test data group
       ".*", 1000000, 100000); // test function

Modified: sandbox/big_number/libs/multiprecision/test/math/test_ibeta_inv_ab_4.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_ibeta_inv_ab_4.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_ibeta_inv_ab_4.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -57,7 +57,7 @@
       ".*", // platform
       ".*", // test type(s)
       ".*", // test data group
- ".*", 1000, 100); // test function
+ ".*", 2000, 200); // test function
    //
    // Finish off by printing out the compiler/stdlib/platform names,
    // we do this to make it easier to mark up expected error rates.

Modified: sandbox/big_number/libs/multiprecision/test/math/test_igamma_inv.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_igamma_inv.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_igamma_inv.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -60,9 +60,16 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*small.*", // test data group
+ ".*", 30000000L, 5000000L); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*small.*", // test data group
- ".*", 10000000L, 2000000L); // test function
+ ".*", 10000000L, 2500000L); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib

Modified: sandbox/big_number/libs/multiprecision/test/math/test_tgamma_ratio.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_tgamma_ratio.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_tgamma_ratio.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -59,9 +59,16 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*mpfr_float_backend<18>.*", // test type(s)
+ ".*", // test data group
+ ".*", 20000, 7000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*", // test data group
- ".*", 1000, 200); // test function
+ ".*", 2000, 500); // test function
    //
    // Finish off by printing out the compiler/stdlib/platform names,
    // we do this to make it easier to mark up expected error rates.

Modified: sandbox/big_number/libs/multiprecision/test/math/test_zeta.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/math/test_zeta.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/math/test_zeta.cpp 2012-04-05 13:19:57 EDT (Thu, 05 Apr 2012)
@@ -54,7 +54,7 @@
       ".*", // platform
       ".*", // test type(s)
       ".*Random values less than 1", // test data group
- ".*", 5000, 2000); // test function
+ ".*", 6000, 3000); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib


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