summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Enge <andreas.enge@inria.fr>2016-07-22 19:51:11 +0200
committerAndreas Enge <andreas.enge@inria.fr>2016-07-22 19:51:11 +0200
commita451cc07e3fc8f5981b52864b33f746f699dca2d (patch)
tree1a9d6ce14378a8fc11f1a12f5f6f80a4df31b5fe /tests
parent5508e7a22d6a7f445055a6097715c113e39819a5 (diff)
downloadmpc-git-rootofunity.tar.gz
rootofunity: Use a better approximation of the lost bits.rootofunity
* src/rootofunity.c [mpc_rootofunity]: Drop the absolute bound for the number of lost bits in favour of a bound depending on the exponents of the result. * tests/rootofunity.dat: Add examples with large n, that is, a result close to the axes.
Diffstat (limited to 'tests')
-rw-r--r--tests/rootofunity.dat5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rootofunity.dat b/tests/rootofunity.dat
index 3ee9e86..a80b7da 100644
--- a/tests/rootofunity.dat
+++ b/tests/rootofunity.dat
@@ -58,3 +58,8 @@
- + 53 -0b1.0110101000001001111001100110011111110011101111001101e-1 53 -0b1.0110101000001001111001100110011111110011101111001100e-1 8 5 D U
+ - 53 0b1.0110101000001001111001100110011111110011101111001101e-1 53 -0b1.0110101000001001111001100110011111110011101111001101e-1 8 7 U D
- + 53 0b1.0110101000001001111001100110011111110011101111001100e-1 53 -0b1.0110101000001001111001100110011111110011101111001100e-1 8 7 D U
+
+# example with large n=2^32-1 and small real or imaginary part
++ + 53 1 53 0b1.1001001000011111101101010100010111010100111100010100e-30 4294967295 1 N N
+- + 53 -0b1.1001001000011111101101010100010111010100111100010100e-32 53 1 4294967295 1073741824 N N
+