summaryrefslogtreecommitdiff
path: root/tests/norm.dat
blob: 1a7e341cbeb59f75e26c4b01d7ee0561093cfb9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# Data file for mpc_norm.
#
# Copyright (C) 2008, 2010, 2011 INRIA
#
# This file is part of GNU MPC.
#
# GNU MPC is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at your
#o ption) any later version.
#
# GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
# more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see http://www.gnu.org/licenses/ .
#
# For explanations on the file format, see abs.dat.

# special values
0 7 +inf   7 -inf 7 -inf N
0 7 +inf   7 -inf 7   -1 N
0 7 +inf   7 -inf 7   -0 N
0 7 +inf   7 -inf 7   +0 N
0 7 +inf   7 -inf 7    1 N
0 7 +inf   7 -inf 7 +inf N
0 7 +inf   7 -inf 7  nan N
0 7 +inf   7   -1 7 -inf N
0 7 +inf   7   -1 7 +inf N
0 7  nan   7   -1 7  nan N
0 7 +inf   7   -0 7 -inf N
0 7 +inf   7   -0 7 +inf N
0 7  nan   7   -0 7  nan N
0 7 +inf   7   +0 7 -inf N
0 7 +inf   7   +0 7 +inf N
0 7  nan   7   +0 7  nan N
0 7 +inf   7    1 7 -inf N
0 7 +inf   7    1 7 +inf N
0 7  nan   7    1 7  nan N
0 7 +inf   7 +inf 7 -inf N
0 7 +inf   7 +inf 7   -1 N
0 7 +inf   7 +inf 7   -0 N
0 7 +inf   7 +inf 7   +0 N
0 7 +inf   7 +inf 7    1 N
0 7 +inf   7 +inf 7 +inf N
0 7 +inf   7 +inf 7  nan N
0 7 +inf   7  nan 7 -inf N
0 7  nan   7  nan 7   -1 N
0 7  nan   7  nan 7   -0 N
0 7  nan   7  nan 7   +0 N
0 7  nan   7  nan 7    1 N
0 7 +inf   7  nan 7 +inf N
0 7  nan   7  nan 7  nan N

# values with only 1, -1, +0, -0
0 7    2   7   -1 7   -1 N
0 7    1   7   -1 7   -0 N
0 7    1   7   -1 7   +0 N
0 7    2   7   -1 7    1 N
0 7    1   7   -0 7   -1 N
0 7   +0   7   -0 7   -0 N
0 7   +0   7   -0 7   +0 N
0 7    1   7   -0 7    1 N
0 7    1   7   +0 7   -1 N
0 7   +0   7   +0 7   -0 N
0 7   +0   7   +0 7   +0 N
0 7    1   7   +0 7    1 N
0 7    2   7    1 7   -1 N
0 7    1   7    1 7   -0 N
0 7    1   7    1 7   +0 N
0 7    2   7    1 7    1 N

# overflow
+ 53 +inf  2 0x1p536870912 2 0x1p536870912 U

# infinite loop reported by E. Thome
- 250 +0 250 -0xf.fdda3457c3e69e5841461d505b42987feb42867a4a2d2872179c4efa20054c0@-136943039 250 -0xc.670d1beda685fdd771b6246e32ff49ec4fd70aec25367444e00933e6965d3c0@-136943040 N

# inexact values: norm (2+i)=5, in the middle between two values at precision 2
- 2 4  2 2 2 1 D
- 2 4  2 2 2 1 Z
+ 2 6  2 2 2 1 U
- 2 4  2 2 2 1 N

# over- and underflows
+ 10 inf                        10 0 10 0b1@536870912  N
+ 10 inf                        10 0 10 0b1@536870912  U
- 10 0b1.111111111@1073741822   10 0 10 0b1@536870912  D
- 10 0b1.111111111@1073741822   10 0 10 0b1@536870912  Z
- 10 0                          10 0 10 0b1@-536870913 N
- 10 0                          10 0 10 0b1@-536870913 D
- 10 0                          10 0 10 0b1@-536870913 Z
+ 10 0b1.000000000e-1073741824  10 0 10 0b1@-536870913 U

+ 10 inf                        10 0b1@536870912  10 0 N
+ 10 inf                        10 0b1@536870912  10 0 U
- 10 0b1.111111111@1073741822   10 0b1@536870912  10 0 D
- 10 0b1.111111111@1073741822   10 0b1@536870912  10 0 Z
- 10 0                          10 0b1@-536870913 10 0 N
- 10 0                          10 0b1@-536870913 10 0 D
- 10 0                          10 0b1@-536870913 10 0 Z
+ 10 0b1.000000000e-1073741824  10 0b1@-536870913 10 0 U

+ 10 inf                        10 1 10 0b1@536870912  N
+ 10 inf                        10 1 10 0b1@536870912  U
- 10 0b1.111111111@1073741822   10 1 10 0b1@536870912  D
- 10 0b1.111111111@1073741822   10 1 10 0b1@536870912  Z
- 10 1                          10 1 10 0b1@-536870913 N
- 10 1                          10 1 10 0b1@-536870913 D
- 10 1                          10 1 10 0b1@-536870913 Z
+ 10 0b1.000000001              10 1 10 0b1@-536870913 U

+ 10 inf                        10 0b1@536870912  10 1 N
+ 10 inf                        10 0b1@536870912  10 1 U
- 10 0b1.111111111@1073741822   10 0b1@536870912  10 1 D
- 10 0b1.111111111@1073741822   10 0b1@536870912  10 1 Z
- 10 1                          10 0b1@-536870913 10 1 N
- 10 1                          10 0b1@-536870913 10 1 D
- 10 1                          10 0b1@-536870913 10 1 Z
+ 10 0b1.000000001              10 0b1@-536870913 10 1 U

+ 3 inf                        10 0b1.1 10 0b1@536870912  N
+ 3 inf                        10 0b1.1 10 0b1@536870912  U
- 3 0b1.11@1073741822          10 0b1.1 10 0b1@536870912  D
- 3 0b1.11@1073741822          10 0b1.1 10 0b1@536870912  Z
+ 3 2.5                        10 0b1.1 10 0b1@-536870913 N
- 3 2                          10 0b1.1 10 0b1@-536870913 D
- 3 2                          10 0b1.1 10 0b1@-536870913 Z
+ 3 0b1.01@1                   10 0b1.1 10 0b1@-536870913 U

+ 3 inf                        10 0b1@536870912 10 0b1.1  N
+ 3 inf                        10 0b1@536870912  10 0b1.1 U
- 3 0b1.11@1073741822          10 0b1@536870912  10 0b1.1 D
- 3 0b1.11@1073741822          10 0b1@536870912  10 0b1.1 Z
+ 3 2.5                        10 0b1@-536870913 10 0b1.1 N
- 3 2                          10 0b1@-536870913 10 0b1.1 D
- 3 2                          10 0b1@-536870913 10 0b1.1 Z
+ 3 0b1.01@1                   10 0b1@-536870913 10 0b1.1 U

+ 10 inf                        10 0b1@-536870913 10 0b1@536870912  N
+ 10 inf                        10 0b1@-536870913 10 0b1@536870912  U
- 10 0b1.111111111@1073741822   10 0b1@-536870913 10 0b1@536870912  D
- 10 0b1.111111111@1073741822   10 0b1@-536870912 10 0b1@536870912  Z
+ 10 inf                        10 0b1@536870912 10 0b1@-536870913  N
+ 10 inf                        10 0b1@536870912 10 0b1@-536870913  U
- 10 0b1.111111111@1073741822   10 0b1@536870912 10 0b1@-536870913  D
- 10 0b1.111111111@1073741822   10 0b1@536870912 10 0b1@-536870913  Z
+ 10 inf                        10 0b1@536870912 10 0b1@536870912  N
+ 10 inf                        10 0b1@536870912 10 0b1@536870912  U
- 10 0b1.111111111@1073741822   10 0b1@536870912 10 0b1@536870912  D
- 10 0b1.111111111@1073741822   10 0b1@536870912 10 0b1@536870912  Z
- 10 0                          10 0b1@-536870913 10 0b1@-536870913  N
- 10 0                          10 0b1@-536870913 10 0b1@-536870913  D
- 10 0                          10 0b1@-536870913 10 0b1@-536870913  Z
+ 10 0b1@-1073741824            10 0b1@-536870913 10 0b1@-536870913  U

0 18 0b1.00100000000001001@-1073741811 2 0b1.1@-536870906 2 0b1.1@-536870913  N
0 18 0b1.00100000000001001@-1073741811 2 0b1.1@-536870913 2 0b1.1@-536870906  N
0 18 0b1.00100000000001001@-1073741811 2 0b1.1@-536870906 2 0b1.1@-536870913  Z
0 18 0b1.00100000000001001@-1073741811 2 0b1.1@-536870913 2 0b1.1@-536870906  Z
0 18 0b1.00100000000001001@-1073741811 2 0b1.1@-536870906 2 0b1.1@-536870913  D
0 18 0b1.00100000000001001@-1073741811 2 0b1.1@-536870913 2 0b1.1@-536870906  D
0 18 0b1.00100000000001001@-1073741811 2 0b1.1@-536870906 2 0b1.1@-536870913  U
0 18 0b1.00100000000001001@-1073741811 2 0b1.1@-536870913 2 0b1.1@-536870906  U