[Mpfi-commits] r361 - trunk/mpfi/tests

ptheveny at users.gforge.inria.fr ptheveny at users.gforge.inria.fr
Lun 28 Juin 19:51:27 CEST 2010


Author: ptheveny
Date: 2010-06-28 19:51:27 +0200 (Mon, 28 Jun 2010)
New Revision: 361

Added:
   trunk/mpfi/tests/csc.dat
Modified:
   trunk/mpfi/tests/Makefile.am
   trunk/mpfi/tests/tcsc.c
Log:
Add test data for mpfi_csc.

Modified: trunk/mpfi/tests/Makefile.am
===================================================================
--- trunk/mpfi/tests/Makefile.am	2010-06-28 17:50:34 UTC (rev 360)
+++ trunk/mpfi/tests/Makefile.am	2010-06-28 17:51:27 UTC (rev 361)
@@ -39,16 +39,16 @@
     asin.dat asinh.dat atan.dat atan2.dat atanh.dat		\
     bisect.dat blow.dat bounded_p.dat cbrt.dat			\
     const_catalan.dat const_euler.dat const_log2.dat		\
-    const_pi.dat cos.dat cosh.dat cot.dat coth.dat csch.dat	\
-    diam.dat diam_abs.dat diam_rel.dat div.dat has_zero.dat	\
-    increase.dat inf_p.dat inp_str.dat intersect.dat inv.dat	\
-    is_neg.dat is_nonneg.dat is_nonpos.dat is_pos.dat		\
-    is_strictly_neg.dat is_strictly_pos.dat log.dat mag.dat	\
-    mid.dat mig.dat mul.dat mul_d.dat nan_p.dat neg.dat		\
-    put_d.dat put_fr.dat put_q.dat put_si.dat put_ui.dat	\
-    put_z.dat q_div.dat set_d.dat set_fr.dat set_q.dat		\
-    set_si.dat set_ui.dat set_z.dat sqr.dat sqrt.dat sub.dat	\
-    union.dat
+    const_pi.dat cos.dat cosh.dat cot.dat coth.dat csc.dat	\
+    csch.dat diam.dat diam_abs.dat diam_rel.dat div.dat		\
+    has_zero.dat increase.dat inf_p.dat inp_str.dat		\
+    intersect.dat inv.dat is_neg.dat is_nonneg.dat		\
+    is_nonpos.dat is_pos.dat is_strictly_neg.dat		\
+    is_strictly_pos.dat log.dat mag.dat mid.dat mig.dat		\
+    mul.dat mul_d.dat nan_p.dat neg.dat put_d.dat put_fr.dat	\
+    put_q.dat put_si.dat put_ui.dat put_z.dat q_div.dat		\
+    set_d.dat set_fr.dat set_q.dat set_si.dat set_ui.dat	\
+    set_z.dat sqr.dat sqrt.dat sub.dat union.dat
 
 TESTS = $(check_PROGRAMS)
 CLEANFILES = io_str.tmp
\ No newline at end of file

Added: trunk/mpfi/tests/csc.dat
===================================================================
--- trunk/mpfi/tests/csc.dat	                        (rev 0)
+++ trunk/mpfi/tests/csc.dat	2010-06-28 17:51:27 UTC (rev 361)
@@ -0,0 +1,149 @@
+# data file for mpfi_csc
+#
+# column fields:
+# 1: inexact flag (returned value)
+# 2: precision of result
+# 3: left endpoint value of result
+# 4: right endpoint value of result
+#
+# 5: precision of input parameter
+# 6: left endpoint value of input parameter
+# 7: right endpoint value of input parameter
+
+# special values
+0 53  nan    nan    53  nan  nan
+0 53  nan    nan    53  nan -inf
+0 53  nan    nan    53 -7    nan
+0 53  nan    nan    53  nan -0
+0 53  nan    nan    53 +0    nan
+0 53  nan    nan    53 -inf  nan
+0 53  nan    nan    53 -inf -inf
+0 53 -inf   +inf    53 -inf -7
+0 53 -inf   +inf    53 -inf -0
+0 53 -inf   +inf    53 -inf  8
+0 53 -inf   +inf    53 -inf +inf
+0 53 -inf   +inf    53 -8   -0
+0 53 -inf   -1      53 -3   -0
+
+2 53 -inf                  -0x1303aa9620b223p-52   53 -1 -0
+
+0 53 -inf   +inf    53 +0   -0
+
+1 53  0x1303aa9620b223p-52 +inf                    53 +0 +1
+
+0 53  1     +inf    53 +0    3
+0 53 -inf   +inf    53 +0    8
+0 53 -inf   +inf    53 +0   +inf
+0 53  nan    nan    53 +inf +inf
+
+# regular values
+0 53 -inf   +inf    53 -6    7
+0 53 -inf   +inf    53 -6    6
+0 53 -inf   +inf    53 -6    5
+0 53 -inf   +inf    53 -6    4
+0 53 -inf   +inf    53 -6    3
+0 53 -inf   +inf    53 -6    2
+0 53 -inf   +inf    53 -6    1
+0 53 -inf   +inf    53 -6   -0
+0 53 -inf   +inf    53 -6   -1
+0 53 -inf   +inf    53 -6   -2
+0 53 -inf   +inf    53 -6   -3
+2 53  1                     0x1ca19615f903dap-51   53 -6 -4
+3 53  0x10af73f9df86b7p-52  0x1ca19615f903dap-51   53 -6 -5
+3 53  0x1CA19615F903D9p-51  0x1ca19615f903dap-51   53 -6 -6
+
+0 53 -inf   +inf    53 -5    7
+0 53 -inf   +inf    53 -5    6
+0 53 -inf   +inf    53 -5    5
+0 53 -inf   +inf    53 -5    4
+0 53 -inf   +inf    53 -5    3
+0 53 -inf   +inf    53 -5    2
+0 53 -inf   +inf    53 -5    1
+0 53 -inf   +inf    53 -5   -0
+0 53 -inf   +inf    53 -5   -1
+0 53 -inf   +inf    53 -5   -2
+0 53 -inf   +inf    53 -5   -3
+2 53  1                     0x15243e8b2f4642p-52   53 -5 -4
+3 53  0x10af73f9df86b7p-52  0x10af73f9df86b8p-52   53 -5 -5
+
+0 53 -inf   +inf    53 -4    7
+0 53 -inf   +inf    53 -4    6
+0 53 -inf   +inf    53 -4    5
+0 53 -inf   +inf    53 -4    4
+0 53 -inf   +inf    53 -4    3
+0 53 -inf   +inf    53 -4    2
+0 53 -inf   +inf    53 -4    1
+0 53 -inf   +inf    53 -4   -0
+0 53 -inf   +inf    53 -4   -1
+0 53 -inf   +inf    53 -4   -2
+0 53 -inf   +inf    53 -4   -3
+3 53  0x15243E8B2F4641p-52  0x15243e8b2f4642p-52   53 -4 -4
+
+0 53 -inf   +inf    53 -3    7
+0 53 -inf   +inf    53 -3    6
+0 53 -inf   +inf    53 -3    5
+0 53 -inf   +inf    53 -3    4
+0 53 -inf   +inf    53 -3    3
+0 53 -inf   +inf    53 -3    2
+0 53 -inf   +inf    53 -3    1
+0 53 -inf   -1      53 -3   -0
+1 53 -0x1c583c440ab0dap-50 -1                      53 -3 -1
+3 53 -0x1c583c440ab0dap-50 -0x119893a272f912p-52   53 -3 -2
+3 53 -0x1c583c440ab0dap-50 -0x1c583c440ab0d9p-50   53 -3 -3
+
+0 53 -inf   +inf    53 -2    7
+0 53 -inf   +inf    53 -2    6
+0 53 -inf   +inf    53 -2    5
+0 53 -inf   +inf    53 -2    4
+0 53 -inf   +inf    53 -2    3
+0 53 -inf   +inf    53 -2    2
+0 53 -inf   +inf    53 -2    1
+0 53 -inf   -1      53 -2   -0
+1 53 -0x1303aa9620b224p-52 -1                      53 -2 -1
+3 53 -0x119893a272f913p-52 -0x119893a272f912p-52   53 -2 -2
+
+0 53 -inf   +inf    53 -1    7
+0 53 -inf   +inf    53 -1    6
+0 53 -inf   +inf    53 -1    5
+0 53 -inf   +inf    53 -1    4
+0 53 -inf   +inf    53 -1    3
+0 53 -inf   +inf    53 -1    2
+0 53 -inf   +inf    53 -1    1
+2 53 -inf                  -0x1303aa9620b223p-52   53 -1 -0
+3 53 -0x1303aa9620b224p-52 -0x1303aa9620b223p-52   53 -1 -1
+
+0 53 -inf   +inf    53  1    7
+0 53 -inf   +inf    53  1    6
+0 53 -inf   +inf    53  1    5
+0 53 -inf   +inf    53  1    4
+2 53  1                     0x1c583c440ab0dap-50   53  1  3
+2 53  1                     0x1303aa9620b224p-52   53  1  2
+3 53  0x1303aa9620b223p-52  0x1303aa9620b224p-52   53  1  1
+
+0 53 -inf   +inf    53  2    7
+0 53 -inf   +inf    53  2    6
+0 53 -inf   +inf    53  2    5
+0 53 -inf   +inf    53  2    4
+3 53  0x119893a272f912p-52  0x1c583c440ab0dap-50   53  2  3
+3 53  0x119893a272f912p-52  0x119893a272f913p-52   53  2  2
+
+0 53 -inf   +inf    53  3    7
+0 53 -inf   +inf    53  3    6
+0 53 -inf   +inf    53  3    5
+0 53 -inf   +inf    53  3    4
+3 53  0x1c583c440ab0d9p-50  0x1c583c440ab0dap-50   53  3  3
+
+0 53 -inf   +inf    53  4    7
+1 53 -0x1ca19615f903dap-51 -1                      53  4  6
+1 53 -0x15243e8b2f4642p-52 -1                      53  4  5
+3 53 -0x15243e8b2f4642p-52 -0x15243e8b2f4641p-52   53  4  4
+
+0 53 -inf   +inf    53  5    7
+3 53 -0x1ca19615f903dap-51 -0x10af73f9df86b7p-52   53  5  6
+3 53 -0x10af73f9df86b8p-52 -0x10af73f9df86b7p-52   53  5  5
+
+0 53 -inf   +inf    53  6    7
+3 53 -0x1ca19615f903dap-51  -0x1ca19615f903d9p-51   53  6  6
+
+3 53 +0x185a86a4ceb06cp-52 +0x185a86a4ceb06dp-52   53  7  7
+

Modified: trunk/mpfi/tests/tcsc.c
===================================================================
--- trunk/mpfi/tests/tcsc.c	2010-06-28 17:50:34 UTC (rev 360)
+++ trunk/mpfi/tests/tcsc.c	2010-06-28 17:51:27 UTC (rev 361)
@@ -49,7 +49,7 @@
 
   test_start ();
 
-/*   check_data (&i_csc, "csc.dat"); */
+  check_data (&i_csc, "csc.dat");
   check_random (&i_csc, 2, 1000, 10);
 
   test_end ();




More information about the Mpfi-commits mailing list