summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-06-30 14:32:11 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-06-30 14:32:11 +0000
commit4fa6ba816d900b6df71065ad4971e3ebb74d3056 (patch)
treecb026c80e21b2669a0cae48c6abe2579314541e6 /tests
parent22ec468b9cec80aa3ffdf58dc853b8cf70f5236c (diff)
downloadmpc-4fa6ba816d900b6df71065ad4971e3ebb74d3056.tar.gz
log.c: correctly handle log (+-1 + i*eps)
log.dat: add corresponding test cases git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1213 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests')
-rw-r--r--tests/log.dat12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/log.dat b/tests/log.dat
index 854ebf0..9b7aab2 100644
--- a/tests/log.dat
+++ b/tests/log.dat
@@ -173,7 +173,11 @@
# Example leading to intermediate underflow in x^2+y^2
- - 53 -0x58B90BFB3775A8p-25 2 0x3p-2 2 0x1p-1073741824 2 0x1p-1073741824 D D
-# Due to intermediate "underflow" (see FIXME in log.c), the following example
-# loops.
-# log(-1 + i*eps)
-# - - 2 0 2 3 2 -1 2 0x1p-1073741813 N N
+# log (-1 + i*eps), looped in previous version
+- - 2 0 2 3 2 -1 2 0x1p-1073741813 N N
+- - 2 0 2 3 2 -1 2 0x1p-1073741813 D D
++ + 2 0x1p-1073741824 2 4 2 -1 2 0x1p-1073741813 U U
+# log(1 + i*eps), could cause similar problems
+- + 2 0 2 0x1p-1073741824 2 1 2 0x1p-1073741824 N N
+- - 2 0 2 0 2 1 2 0x1p-1073741824 D D
++ + 2 0x1p-1073741824 2 0x1p-1073741824 2 1 2 0x1p-1073741824 U U