summaryrefslogtreecommitdiff
path: root/tests/sqr.dat
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-08-31 16:06:59 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-08-31 16:06:59 +0000
commitfa0c2ffe2ef71fbec4d563e236ee8e45dbb3bfaa (patch)
treeda0ffb3182c69bb3884588c2b8c12798c4d93dca /tests/sqr.dat
parent1d460b9d082cb27c458eaa40735414dfdca82198 (diff)
downloadmpc-fa0c2ffe2ef71fbec4d563e236ee8e45dbb3bfaa.tar.gz
sqr.c: remove calls to mpfr_check_range, not useful any more since no changing
of exponent range sqr.dat: added tests for over- and underflow git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1058 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/sqr.dat')
-rw-r--r--tests/sqr.dat11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/sqr.dat b/tests/sqr.dat
index b5c3b60..fb14554 100644
--- a/tests/sqr.dat
+++ b/tests/sqr.dat
@@ -143,3 +143,14 @@
# bug 20091001, infinite loop
? + 2256 0 2256 -0 564 0xc.87999bfd1cb1a64288881e214b7cf1af979863b23c030b79c4a8bebb39177967608388a2e4df527977e7755a25df8af8f72fdd6dd2f42bd00de83088b4e9b59ce85caf2e6b0c0@-184298749 564 -0x2.5109af459d4daf357e09475ec991cdc9b02c8f7dfacdc060d2a24710d09c997f8aea6dbd46f10828c30b583fdcc90d7dcbb895689d594d3813db40784d2309e450d1fb6e38da8@-184298726 N N
+
+# (x+x*i)^2 = 0+2*x^2*i with exact real part
+0 0 100 0 100 304831530559368 100 12345678 100 12345678 N N
+0 0 1000 0 100 304831530559368 100 12345678 100 12345678 N N
+# intermediate overflow- and underflows
+0 + 100 0 100 +inf 100 0x1@225000750 100 0x1@225000750 N N
+0 + 10000 0 10000 +inf 100 0x1@225000750 100 0x1@225000750 N N
+0 - 100 0 100 +0 100 0x1@-225000750 100 0x1@-225000750 N N
+0 + 100 0 100 -0 100 0x1@-225000750 100 -0x1@-225000750 N N
+0 - 10000 0 10000 +0 100 0x1@-225000750 100 0x1@-225000750 N N
+0 + 10000 0 10000 -0 100 0x1@-225000750 100 -0x1@-225000750 N N