Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86786 - trunk/libs/multiprecision/test/math
From: john_at_[hidden]
Date: 2013-11-22 12:13:35


Author: johnmaddock
Date: 2013-11-22 12:13:35 EST (Fri, 22 Nov 2013)
New Revision: 86786
URL: http://svn.boost.org/trac/boost/changeset/86786

Log:
Fix up error rates for cpp_bin_float: these are higher mostly down to less accurate sine and cosine than the competition :-(

Text files modified:
   trunk/libs/multiprecision/test/math/test_bessel_j.cpp | 14 ++++++++++++++
   trunk/libs/multiprecision/test/math/test_bessel_k.cpp | 7 +++++++
   trunk/libs/multiprecision/test/math/test_bessel_y.cpp | 30 +++++++++++++++++++++++++++++-
   trunk/libs/multiprecision/test/math/test_erf.cpp | 7 +++++++
   trunk/libs/multiprecision/test/math/test_expint.cpp | 7 +++++++
   5 files changed, 64 insertions(+), 1 deletions(-)

Modified: trunk/libs/multiprecision/test/math/test_bessel_j.cpp
==============================================================================
--- trunk/libs/multiprecision/test/math/test_bessel_j.cpp Fri Nov 22 12:12:06 2013 (r86785)
+++ trunk/libs/multiprecision/test/math/test_bessel_j.cpp 2013-11-22 12:13:35 EST (Fri, 22 Nov 2013) (r86786)
@@ -53,6 +53,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ ".*JN.*Integer.*", // test data group
+ ".*", 500000, 150000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*JN.*Integer.*", // test data group
       ".*", 50000, 15000); // test function
@@ -67,6 +74,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ ".*(JN|j).*|.*Tricky.*", // test data group
+ ".*", 500000, 200000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*(JN|j).*|.*Tricky.*", // test data group
       ".*", 7000, 3000); // test function

Modified: trunk/libs/multiprecision/test/math/test_bessel_k.cpp
==============================================================================
--- trunk/libs/multiprecision/test/math/test_bessel_k.cpp Fri Nov 22 12:12:06 2013 (r86785)
+++ trunk/libs/multiprecision/test/math/test_bessel_k.cpp 2013-11-22 12:13:35 EST (Fri, 22 Nov 2013) (r86786)
@@ -54,6 +54,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ ".*", // test data group
+ ".*", 300, 150); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*", // test data group
       ".*", 50, 15); // test function

Modified: trunk/libs/multiprecision/test/math/test_bessel_y.cpp
==============================================================================
--- trunk/libs/multiprecision/test/math/test_bessel_y.cpp Fri Nov 22 12:12:06 2013 (r86785)
+++ trunk/libs/multiprecision/test/math/test_bessel_y.cpp 2013-11-22 12:13:35 EST (Fri, 22 Nov 2013) (r86786)
@@ -31,6 +31,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ ".*(Y[nv]|y).*Random.*", // test data group
+ ".*", 2000000, 1000000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*(Y[nv]|y).*Random.*", // test data group
       ".*", 70000, 4000); // test function
@@ -45,6 +52,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ ".*Y0.*", // test data group
+ ".*", 40000, 20000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*Y0.*", // test data group
       ".*", 800, 400); // test function
@@ -54,7 +68,14 @@
       ".*", // platform
       ".*mpfr_float_backend<18>.*", // test type(s)
       ".*Yn.*", // test data group
- ".*", 200000, 70000); // test function
+ ".*", 400000, 70000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ ".*Yn.*", // test data group
+ ".*", 400000, 200000); // test function
    add_expected_result(
       ".*", // compiler
       ".*", // stdlib
@@ -73,6 +94,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ ".*", // test data group
+ ".*", 50000, 20000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*", // test data group
       ".*", 150, 60); // test function

Modified: trunk/libs/multiprecision/test/math/test_erf.cpp
==============================================================================
--- trunk/libs/multiprecision/test/math/test_erf.cpp Fri Nov 22 12:12:06 2013 (r86785)
+++ trunk/libs/multiprecision/test/math/test_erf.cpp 2013-11-22 12:13:35 EST (Fri, 22 Nov 2013) (r86786)
@@ -43,6 +43,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ "Erf Function:.*", // test data group
+ "boost::math::erfc?", 3000, 1000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       "Erf Function:.*", // test data group
       "boost::math::erfc?", 300, 200); // test function

Modified: trunk/libs/multiprecision/test/math/test_expint.cpp
==============================================================================
--- trunk/libs/multiprecision/test/math/test_expint.cpp Fri Nov 22 12:12:06 2013 (r86785)
+++ trunk/libs/multiprecision/test/math/test_expint.cpp 2013-11-22 12:13:35 EST (Fri, 22 Nov 2013) (r86786)
@@ -50,6 +50,13 @@
       ".*", // compiler
       ".*", // stdlib
       ".*", // platform
+ ".*cpp_bin_float.*", // test type(s)
+ ".*", // test data group
+ ".*", 5000, 2000); // test function
+ add_expected_result(
+ ".*", // compiler
+ ".*", // stdlib
+ ".*", // platform
       ".*", // test type(s)
       ".*", // test data group
       ".*", 250, 50); // test function


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