]>
Commit | Line | Data |
---|---|---|
4710c53d | 1 | ------------------------------------------------------------------------\r |
2 | -- power.decTest -- decimal exponentiation [power(x, y)] --\r | |
3 | -- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r | |
4 | ------------------------------------------------------------------------\r | |
5 | -- Please see the document "General Decimal Arithmetic Testcases" --\r | |
6 | -- at http://www2.hursley.ibm.com/decimal for the description of --\r | |
7 | -- these testcases. --\r | |
8 | -- --\r | |
9 | -- These testcases are experimental ('beta' versions), and they --\r | |
10 | -- may contain errors. They are offered on an as-is basis. In --\r | |
11 | -- particular, achieving the same results as the tests here is not --\r | |
12 | -- a guarantee that an implementation complies with any Standard --\r | |
13 | -- or specification. The tests are not exhaustive. --\r | |
14 | -- --\r | |
15 | -- Please send comments, suggestions, and corrections to the author: --\r | |
16 | -- Mike Cowlishaw, IBM Fellow --\r | |
17 | -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r | |
18 | -- mfc@uk.ibm.com --\r | |
19 | ------------------------------------------------------------------------\r | |
20 | version: 2.59\r | |
21 | \r | |
22 | -- In addition to the power operator testcases here, see also the file\r | |
23 | -- powersqrt.decTest which includes all the tests from\r | |
24 | -- squareroot.decTest implemented using power(x, 0.5)\r | |
25 | \r | |
26 | extended: 1\r | |
27 | precision: 16\r | |
28 | rounding: half_even\r | |
29 | maxExponent: 384\r | |
30 | minExponent: -383\r | |
31 | \r | |
32 | -- base checks. Note 0**0 is an error.\r | |
33 | powx001 power '0' '0' -> NaN Invalid_operation\r | |
34 | powx002 power '0' '1' -> '0'\r | |
35 | powx003 power '0' '2' -> '0'\r | |
36 | powx004 power '1' '0' -> '1'\r | |
37 | powx005 power '1' '1' -> '1'\r | |
38 | powx006 power '1' '2' -> '1'\r | |
39 | \r | |
40 | powx010 power '2' '0' -> '1'\r | |
41 | powx011 power '2' '1' -> '2'\r | |
42 | powx012 power '2' '2' -> '4'\r | |
43 | powx013 power '2' '3' -> '8'\r | |
44 | powx014 power '2' '4' -> '16'\r | |
45 | powx015 power '2' '5' -> '32'\r | |
46 | powx016 power '2' '6' -> '64'\r | |
47 | powx017 power '2' '7' -> '128'\r | |
48 | powx018 power '2' '8' -> '256'\r | |
49 | powx019 power '2' '9' -> '512'\r | |
50 | powx020 power '2' '10' -> '1024'\r | |
51 | powx021 power '2' '11' -> '2048'\r | |
52 | powx022 power '2' '12' -> '4096'\r | |
53 | powx023 power '2' '15' -> '32768'\r | |
54 | powx024 power '2' '16' -> '65536'\r | |
55 | powx025 power '2' '31' -> '2147483648'\r | |
56 | -- NB 0 not stripped in next\r | |
57 | powx026 power '2' '32' -> '4294967296'\r | |
58 | \r | |
59 | precision: 9\r | |
60 | powx027 power '2' '31' -> '2.14748365E+9' Inexact Rounded\r | |
61 | -- NB 0 not stripped in next\r | |
62 | powx028 power '2' '32' -> '4.29496730E+9' Inexact Rounded\r | |
63 | precision: 10\r | |
64 | powx029 power '2' '31' -> '2147483648'\r | |
65 | powx030 power '2' '32' -> '4294967296'\r | |
66 | precision: 9\r | |
67 | \r | |
68 | powx031 power '3' '2' -> 9\r | |
69 | powx032 power '4' '2' -> 16\r | |
70 | powx033 power '5' '2' -> 25\r | |
71 | powx034 power '6' '2' -> 36\r | |
72 | powx035 power '7' '2' -> 49\r | |
73 | powx036 power '8' '2' -> 64\r | |
74 | powx037 power '9' '2' -> 81\r | |
75 | powx038 power '10' '2' -> 100\r | |
76 | powx039 power '11' '2' -> 121\r | |
77 | powx040 power '12' '2' -> 144\r | |
78 | \r | |
79 | powx041 power '3' '3' -> 27\r | |
80 | powx042 power '4' '3' -> 64\r | |
81 | powx043 power '5' '3' -> 125\r | |
82 | powx044 power '6' '3' -> 216\r | |
83 | powx045 power '7' '3' -> 343\r | |
84 | powx047 power '-3' '3' -> -27\r | |
85 | powx048 power '-4' '3' -> -64\r | |
86 | powx049 power '-5' '3' -> -125\r | |
87 | powx050 power '-6' '3' -> -216\r | |
88 | powx051 power '-7' '3' -> -343\r | |
89 | \r | |
90 | powx052 power '10' '0' -> 1\r | |
91 | powx053 power '10' '1' -> 10\r | |
92 | powx054 power '10' '2' -> 100\r | |
93 | powx055 power '10' '3' -> 1000\r | |
94 | powx056 power '10' '4' -> 10000\r | |
95 | powx057 power '10' '5' -> 100000\r | |
96 | powx058 power '10' '6' -> 1000000\r | |
97 | powx059 power '10' '7' -> 10000000\r | |
98 | powx060 power '10' '8' -> 100000000\r | |
99 | powx061 power '10' '9' -> 1.00000000E+9 Rounded\r | |
100 | powx062 power '10' '22' -> 1.00000000E+22 Rounded\r | |
101 | powx063 power '10' '77' -> 1.00000000E+77 Rounded\r | |
102 | powx064 power '10' '99' -> 1.00000000E+99 Rounded\r | |
103 | \r | |
104 | powx070 power '0.3' '0' -> '1'\r | |
105 | powx071 power '0.3' '1' -> '0.3'\r | |
106 | powx072 power '0.3' '1.00' -> '0.3'\r | |
107 | powx073 power '0.3' '2.00' -> '0.09'\r | |
108 | powx074 power '0.3' '2.000000000' -> '0.09'\r | |
109 | powx075 power '6.0' '1' -> '6.0' -- NB zeros not stripped\r | |
110 | powx076 power '6.0' '2' -> '36.00' -- ..\r | |
111 | powx077 power '-3' '2' -> '9' -- from NetRexx book\r | |
112 | powx078 power '4' '3' -> '64' -- .. (sort of)\r | |
113 | \r | |
114 | powx080 power 0.1 0 -> 1\r | |
115 | powx081 power 0.1 1 -> 0.1\r | |
116 | powx082 power 0.1 2 -> 0.01\r | |
117 | powx083 power 0.1 3 -> 0.001\r | |
118 | powx084 power 0.1 4 -> 0.0001\r | |
119 | powx085 power 0.1 5 -> 0.00001\r | |
120 | powx086 power 0.1 6 -> 0.000001\r | |
121 | powx087 power 0.1 7 -> 1E-7\r | |
122 | powx088 power 0.1 8 -> 1E-8\r | |
123 | powx089 power 0.1 9 -> 1E-9\r | |
124 | \r | |
125 | powx090 power 101 2 -> 10201\r | |
126 | powx091 power 101 3 -> 1030301\r | |
127 | powx092 power 101 4 -> 104060401\r | |
128 | powx093 power 101 5 -> 1.05101005E+10 Inexact Rounded\r | |
129 | powx094 power 101 6 -> 1.06152015E+12 Inexact Rounded\r | |
130 | powx095 power 101 7 -> 1.07213535E+14 Inexact Rounded\r | |
131 | \r | |
132 | -- negative powers\r | |
133 | powx099 power '1' '-1' -> 1\r | |
134 | powx100 power '3' '-1' -> 0.333333333 Inexact Rounded\r | |
135 | powx101 power '2' '-1' -> 0.5\r | |
136 | powx102 power '2' '-2' -> 0.25\r | |
137 | powx103 power '2' '-4' -> 0.0625\r | |
138 | powx104 power '2' '-8' -> 0.00390625\r | |
139 | powx105 power '2' '-16' -> 0.0000152587891 Inexact Rounded\r | |
140 | powx106 power '2' '-32' -> 2.32830644E-10 Inexact Rounded\r | |
141 | powx108 power '2' '-64' -> 5.42101086E-20 Inexact Rounded\r | |
142 | powx110 power '10' '-8' -> 1E-8\r | |
143 | powx111 power '10' '-7' -> 1E-7\r | |
144 | powx112 power '10' '-6' -> 0.000001\r | |
145 | powx113 power '10' '-5' -> 0.00001\r | |
146 | powx114 power '10' '-4' -> 0.0001\r | |
147 | powx115 power '10' '-3' -> 0.001\r | |
148 | powx116 power '10' '-2' -> 0.01\r | |
149 | powx117 power '10' '-1' -> 0.1\r | |
150 | powx121 power '10' '-77' -> '1E-77'\r | |
151 | powx122 power '10' '-22' -> '1E-22'\r | |
152 | \r | |
153 | powx123 power '2' '-1' -> '0.5'\r | |
154 | powx124 power '2' '-2' -> '0.25'\r | |
155 | powx125 power '2' '-4' -> '0.0625'\r | |
156 | \r | |
157 | powx126 power '0' '-1' -> Infinity\r | |
158 | powx127 power '0' '-2' -> Infinity\r | |
159 | powx128 power -0 '-1' -> -Infinity\r | |
160 | powx129 power -0 '-2' -> Infinity\r | |
161 | \r | |
162 | -- "0.5" tests from original Rexx diagnostics [loop unrolled]\r | |
163 | powx200 power 0.5 0 -> 1\r | |
164 | powx201 power 0.5 1 -> 0.5\r | |
165 | powx202 power 0.5 2 -> 0.25\r | |
166 | powx203 power 0.5 3 -> 0.125\r | |
167 | powx204 power 0.5 4 -> 0.0625\r | |
168 | powx205 power 0.5 5 -> 0.03125\r | |
169 | powx206 power 0.5 6 -> 0.015625\r | |
170 | powx207 power 0.5 7 -> 0.0078125\r | |
171 | powx208 power 0.5 8 -> 0.00390625\r | |
172 | powx209 power 0.5 9 -> 0.001953125\r | |
173 | powx210 power 0.5 10 -> 0.0009765625\r | |
174 | \r | |
175 | powx211 power 1 100000000 -> 1\r | |
176 | powx212 power 1 999999998 -> 1\r | |
177 | powx213 power 1 999999999 -> 1\r | |
178 | \r | |
179 | \r | |
180 | -- The Vienna case. Checks both setup and 1/acc working precision\r | |
181 | -- Modified 1998.12.14 as RHS no longer rounded before use (must fit)\r | |
182 | -- Modified 1990.02.04 as LHS is now rounded (instead of truncated to guard)\r | |
183 | -- '123456789E+10' -- lhs .. rounded to 1.23E+18\r | |
184 | -- '-1.23000e+2' -- rhs .. [was: -1.23455e+2, rounds to -123]\r | |
185 | -- Modified 2002.10.06 -- finally, no input rounding\r | |
186 | -- With input rounding, result would be 8.74E-2226\r | |
187 | precision: 3\r | |
188 | maxexponent: 5000\r | |
189 | minexponent: -5000\r | |
190 | powx219 power '123456789E+10' '-1.23000e+2' -> '5.54E-2226' Inexact Rounded\r | |
191 | \r | |
192 | -- zeros\r | |
193 | maxexponent: +96\r | |
194 | minexponent: -95\r | |
195 | precision: 7\r | |
196 | powx223 power 0E-30 3 -> 0\r | |
197 | powx224 power 0E-10 3 -> 0\r | |
198 | powx225 power 0E-1 3 -> 0\r | |
199 | powx226 power 0E+0 3 -> 0\r | |
200 | powx227 power 0 3 -> 0\r | |
201 | powx228 power 0E+1 3 -> 0\r | |
202 | powx229 power 0E+10 3 -> 0\r | |
203 | powx230 power 0E+30 3 -> 0\r | |
204 | powx231 power 3 0E-30 -> 1\r | |
205 | powx232 power 3 0E-10 -> 1\r | |
206 | powx233 power 3 0E-1 -> 1\r | |
207 | powx234 power 3 0E+0 -> 1\r | |
208 | powx235 power 3 0 -> 1\r | |
209 | powx236 power 3 0E+1 -> 1\r | |
210 | powx237 power 3 0E+10 -> 1\r | |
211 | powx238 power 3 0E+30 -> 1\r | |
212 | powx239 power 0E-30 -3 -> Infinity\r | |
213 | powx240 power 0E-10 -3 -> Infinity\r | |
214 | powx241 power 0E-1 -3 -> Infinity\r | |
215 | powx242 power 0E+0 -3 -> Infinity\r | |
216 | powx243 power 0 -3 -> Infinity\r | |
217 | powx244 power 0E+1 -3 -> Infinity\r | |
218 | powx245 power 0E+10 -3 -> Infinity\r | |
219 | powx246 power 0E+30 -3 -> Infinity\r | |
220 | powx247 power -3 0E-30 -> 1\r | |
221 | powx248 power -3 0E-10 -> 1\r | |
222 | powx249 power -3 0E-1 -> 1\r | |
223 | powx250 power -3 0E+0 -> 1\r | |
224 | powx251 power -3 0 -> 1\r | |
225 | powx252 power -3 0E+1 -> 1\r | |
226 | powx253 power -3 0E+10 -> 1\r | |
227 | powx254 power -3 0E+30 -> 1\r | |
228 | \r | |
229 | -- a few lhs negatives\r | |
230 | precision: 9\r | |
231 | maxExponent: 999\r | |
232 | minexponent: -999\r | |
233 | powx260 power -10 '0' -> 1\r | |
234 | powx261 power -10 '1' -> -10\r | |
235 | powx262 power -10 '2' -> 100\r | |
236 | powx263 power -10 '3' -> -1000\r | |
237 | powx264 power -10 '4' -> 10000\r | |
238 | powx265 power -10 '5' -> -100000\r | |
239 | powx266 power -10 '6' -> 1000000\r | |
240 | powx267 power -10 '7' -> -10000000\r | |
241 | powx268 power -10 '8' -> 100000000\r | |
242 | powx269 power -10 '9' -> -1.00000000E+9 Rounded\r | |
243 | powx270 power -10 '22' -> 1.00000000E+22 Rounded\r | |
244 | powx271 power -10 '77' -> -1.00000000E+77 Rounded\r | |
245 | powx272 power -10 '99' -> -1.00000000E+99 Rounded\r | |
246 | \r | |
247 | -- some more edge cases\r | |
248 | precision: 15\r | |
249 | maxExponent: 999\r | |
250 | minexponent: -999\r | |
251 | powx391 power 0.1 999 -> 1E-999\r | |
252 | powx392 power 0.099 999 -> 4.360732062E-1004 Underflow Subnormal Inexact Rounded\r | |
253 | powx393 power 0.098 999 -> 1.71731E-1008 Underflow Subnormal Inexact Rounded\r | |
254 | powx394 power 0.097 999 -> 6E-1013 Underflow Subnormal Inexact Rounded\r | |
255 | powx395 power 0.096 999 -> 0E-1013 Underflow Subnormal Inexact Rounded Clamped\r | |
256 | powx396 power 0.01 999 -> 0E-1013 Underflow Subnormal Inexact Rounded Clamped\r | |
257 | powx397 power 0.02 100000000 -> 0E-1013 Underflow Subnormal Inexact Rounded Clamped\r | |
258 | \r | |
259 | -- multiply tests are here to aid checking and test for consistent handling\r | |
260 | -- of underflow\r | |
261 | precision: 5\r | |
262 | maxexponent: 999\r | |
263 | minexponent: -999\r | |
264 | \r | |
265 | -- squares\r | |
266 | mulx400 multiply 1E-502 1e-502 -> 0E-1003 Subnormal Inexact Underflow Rounded Clamped\r | |
267 | mulx401 multiply 1E-501 1e-501 -> 1E-1002 Subnormal\r | |
268 | mulx402 multiply 2E-501 2e-501 -> 4E-1002 Subnormal\r | |
269 | mulx403 multiply 4E-501 4e-501 -> 1.6E-1001 Subnormal\r | |
270 | mulx404 multiply 10E-501 10e-501 -> 1.00E-1000 Subnormal\r | |
271 | mulx405 multiply 30E-501 30e-501 -> 9.00E-1000 Subnormal\r | |
272 | mulx406 multiply 40E-501 40e-501 -> 1.600E-999\r | |
273 | \r | |
274 | powx400 power 1E-502 2 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
275 | powx401 power 1E-501 2 -> 1E-1002 Subnormal\r | |
276 | powx402 power 2E-501 2 -> 4E-1002 Subnormal\r | |
277 | powx403 power 4E-501 2 -> 1.6E-1001 Subnormal\r | |
278 | powx404 power 10E-501 2 -> 1.00E-1000 Subnormal\r | |
279 | powx405 power 30E-501 2 -> 9.00E-1000 Subnormal\r | |
280 | powx406 power 40E-501 2 -> 1.600E-999\r | |
281 | \r | |
282 | -- cubes\r | |
283 | mulx410 multiply 1E-670 1e-335 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
284 | mulx411 multiply 1E-668 1e-334 -> 1E-1002 Subnormal\r | |
285 | mulx412 multiply 4E-668 2e-334 -> 8E-1002 Subnormal\r | |
286 | mulx413 multiply 9E-668 3e-334 -> 2.7E-1001 Subnormal\r | |
287 | mulx414 multiply 16E-668 4e-334 -> 6.4E-1001 Subnormal\r | |
288 | mulx415 multiply 25E-668 5e-334 -> 1.25E-1000 Subnormal\r | |
289 | mulx416 multiply 10E-668 100e-334 -> 1.000E-999\r | |
290 | \r | |
291 | powx410 power 1E-335 3 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
292 | powx411 power 1E-334 3 -> 1E-1002 Subnormal\r | |
293 | powx412 power 2E-334 3 -> 8E-1002 Subnormal\r | |
294 | powx413 power 3E-334 3 -> 2.7E-1001 Subnormal\r | |
295 | powx414 power 4E-334 3 -> 6.4E-1001 Subnormal\r | |
296 | powx415 power 5E-334 3 -> 1.25E-1000 Subnormal\r | |
297 | powx416 power 10E-334 3 -> 1.000E-999\r | |
298 | \r | |
299 | -- negative powers, testing subnormals\r | |
300 | precision: 5\r | |
301 | maxExponent: 999\r | |
302 | minexponent: -999\r | |
303 | powx421 power 2.5E-501 -2 -> Infinity Overflow Inexact Rounded\r | |
304 | powx422 power 2.5E-500 -2 -> 1.6E+999\r | |
305 | \r | |
306 | powx423 power 2.5E+499 -2 -> 1.6E-999\r | |
307 | powx424 power 2.5E+500 -2 -> 1.6E-1001 Subnormal\r | |
308 | powx425 power 2.5E+501 -2 -> 2E-1003 Underflow Subnormal Inexact Rounded\r | |
309 | powx426 power 2.5E+502 -2 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
310 | \r | |
311 | powx427 power 0.25E+499 -2 -> 1.6E-997\r | |
312 | powx428 power 0.25E+500 -2 -> 1.6E-999\r | |
313 | powx429 power 0.25E+501 -2 -> 1.6E-1001 Subnormal\r | |
314 | powx430 power 0.25E+502 -2 -> 2E-1003 Underflow Subnormal Inexact Rounded\r | |
315 | powx431 power 0.25E+503 -2 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
316 | \r | |
317 | powx432 power 0.04E+499 -2 -> 6.25E-996\r | |
318 | powx433 power 0.04E+500 -2 -> 6.25E-998\r | |
319 | powx434 power 0.04E+501 -2 -> 6.25E-1000 Subnormal\r | |
320 | powx435 power 0.04E+502 -2 -> 6.2E-1002 Underflow Subnormal Inexact Rounded\r | |
321 | powx436 power 0.04E+503 -2 -> 1E-1003 Underflow Subnormal Inexact Rounded\r | |
322 | powx437 power 0.04E+504 -2 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
323 | \r | |
324 | powx441 power 0.04E+334 -3 -> 1.5625E-998\r | |
325 | powx442 power 0.04E+335 -3 -> 1.56E-1001 Underflow Subnormal Inexact Rounded\r | |
326 | powx443 power 0.04E+336 -3 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
327 | powx444 power 0.25E+333 -3 -> 6.4E-998\r | |
328 | powx445 power 0.25E+334 -3 -> 6.4E-1001 Subnormal\r | |
329 | powx446 power 0.25E+335 -3 -> 1E-1003 Underflow Subnormal Inexact Rounded\r | |
330 | powx447 power 0.25E+336 -3 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
331 | -- check sign for cubes and a few squares\r | |
332 | powx448 power -0.04E+334 -3 -> -1.5625E-998\r | |
333 | powx449 power -0.04E+335 -3 -> -1.56E-1001 Underflow Subnormal Inexact Rounded\r | |
334 | powx450 power -0.04E+336 -3 -> -0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
335 | powx451 power -0.25E+333 -3 -> -6.4E-998\r | |
336 | powx452 power -0.25E+334 -3 -> -6.4E-1001 Subnormal\r | |
337 | powx453 power -0.25E+335 -3 -> -1E-1003 Underflow Subnormal Inexact Rounded\r | |
338 | powx454 power -0.25E+336 -3 -> -0E-1003 Underflow Subnormal Inexact Rounded Clamped\r | |
339 | powx455 power -0.04E+499 -2 -> 6.25E-996\r | |
340 | powx456 power -0.04E+500 -2 -> 6.25E-998\r | |
341 | powx457 power -0.04E+501 -2 -> 6.25E-1000 Subnormal\r | |
342 | powx458 power -0.04E+502 -2 -> 6.2E-1002 Underflow Subnormal Inexact Rounded\r | |
343 | \r | |
344 | -- test -0s\r | |
345 | precision: 9\r | |
346 | powx560 power 0 0 -> NaN Invalid_operation\r | |
347 | powx561 power 0 -0 -> NaN Invalid_operation\r | |
348 | powx562 power -0 0 -> NaN Invalid_operation\r | |
349 | powx563 power -0 -0 -> NaN Invalid_operation\r | |
350 | powx564 power 1 0 -> 1\r | |
351 | powx565 power 1 -0 -> 1\r | |
352 | powx566 power -1 0 -> 1\r | |
353 | powx567 power -1 -0 -> 1\r | |
354 | powx568 power 0 1 -> 0\r | |
355 | powx569 power 0 -1 -> Infinity\r | |
356 | powx570 power -0 1 -> -0\r | |
357 | powx571 power -0 -1 -> -Infinity\r | |
358 | powx572 power 0 2 -> 0\r | |
359 | powx573 power 0 -2 -> Infinity\r | |
360 | powx574 power -0 2 -> 0\r | |
361 | powx575 power -0 -2 -> Infinity\r | |
362 | powx576 power 0 3 -> 0\r | |
363 | powx577 power 0 -3 -> Infinity\r | |
364 | powx578 power -0 3 -> -0\r | |
365 | powx579 power -0 -3 -> -Infinity\r | |
366 | \r | |
367 | -- Specials\r | |
368 | powx580 power Inf -Inf -> 0\r | |
369 | powx581 power Inf -1000 -> 0\r | |
370 | powx582 power Inf -1 -> 0\r | |
371 | powx583 power Inf -0.5 -> 0\r | |
372 | powx584 power Inf -0 -> 1\r | |
373 | powx585 power Inf 0 -> 1\r | |
374 | powx586 power Inf 0.5 -> Infinity\r | |
375 | powx587 power Inf 1 -> Infinity\r | |
376 | powx588 power Inf 1000 -> Infinity\r | |
377 | powx589 power Inf Inf -> Infinity\r | |
378 | powx590 power -1000 Inf -> NaN Invalid_operation\r | |
379 | powx591 power -Inf Inf -> NaN Invalid_operation\r | |
380 | powx592 power -1 Inf -> NaN Invalid_operation\r | |
381 | powx593 power -0.5 Inf -> NaN Invalid_operation\r | |
382 | powx594 power -0 Inf -> 0\r | |
383 | powx595 power 0 Inf -> 0\r | |
384 | powx596 power 0.5 Inf -> 0\r | |
385 | powx597 power 1 Inf -> 1.00000000 Inexact Rounded\r | |
386 | powx598 power 1000 Inf -> Infinity\r | |
387 | powx599 power Inf Inf -> Infinity\r | |
388 | \r | |
389 | powx600 power -Inf -Inf -> NaN Invalid_operation\r | |
390 | powx601 power -Inf -1000 -> 0\r | |
391 | powx602 power -Inf -1 -> -0\r | |
392 | powx603 power -Inf -0.5 -> NaN Invalid_operation\r | |
393 | powx604 power -Inf -0 -> 1\r | |
394 | powx605 power -Inf 0 -> 1\r | |
395 | powx606 power -Inf 0.5 -> NaN Invalid_operation\r | |
396 | powx607 power -Inf 1 -> -Infinity\r | |
397 | powx608 power -Inf 1000 -> Infinity\r | |
398 | powx609 power -Inf Inf -> NaN Invalid_operation\r | |
399 | powx610 power -1000 Inf -> NaN Invalid_operation\r | |
400 | powx611 power -Inf -Inf -> NaN Invalid_operation\r | |
401 | powx612 power -1 -Inf -> NaN Invalid_operation\r | |
402 | powx613 power -0.5 -Inf -> NaN Invalid_operation\r | |
403 | powx614 power -0 -Inf -> Infinity\r | |
404 | powx615 power 0 -Inf -> Infinity\r | |
405 | powx616 power 0.5 -Inf -> Infinity\r | |
406 | powx617 power 1 -Inf -> 1.00000000 Inexact Rounded\r | |
407 | powx618 power 1000 -Inf -> 0\r | |
408 | powx619 power Inf -Inf -> 0\r | |
409 | \r | |
410 | powx621 power NaN -Inf -> NaN\r | |
411 | powx622 power NaN -1000 -> NaN\r | |
412 | powx623 power NaN -1 -> NaN\r | |
413 | powx624 power NaN -0.5 -> NaN\r | |
414 | powx625 power NaN -0 -> NaN\r | |
415 | powx626 power NaN 0 -> NaN\r | |
416 | powx627 power NaN 0.5 -> NaN\r | |
417 | powx628 power NaN 1 -> NaN\r | |
418 | powx629 power NaN 1000 -> NaN\r | |
419 | powx630 power NaN Inf -> NaN\r | |
420 | powx631 power NaN NaN -> NaN\r | |
421 | powx632 power -Inf NaN -> NaN\r | |
422 | powx633 power -1000 NaN -> NaN\r | |
423 | powx634 power -1 NaN -> NaN\r | |
424 | powx635 power -0 NaN -> NaN\r | |
425 | powx636 power 0 NaN -> NaN\r | |
426 | powx637 power 1 NaN -> NaN\r | |
427 | powx638 power 1000 NaN -> NaN\r | |
428 | powx639 power Inf NaN -> NaN\r | |
429 | \r | |
430 | powx641 power sNaN -Inf -> NaN Invalid_operation\r | |
431 | powx642 power sNaN -1000 -> NaN Invalid_operation\r | |
432 | powx643 power sNaN -1 -> NaN Invalid_operation\r | |
433 | powx644 power sNaN -0.5 -> NaN Invalid_operation\r | |
434 | powx645 power sNaN -0 -> NaN Invalid_operation\r | |
435 | powx646 power sNaN 0 -> NaN Invalid_operation\r | |
436 | powx647 power sNaN 0.5 -> NaN Invalid_operation\r | |
437 | powx648 power sNaN 1 -> NaN Invalid_operation\r | |
438 | powx649 power sNaN 1000 -> NaN Invalid_operation\r | |
439 | powx650 power sNaN NaN -> NaN Invalid_operation\r | |
440 | powx651 power sNaN sNaN -> NaN Invalid_operation\r | |
441 | powx652 power NaN sNaN -> NaN Invalid_operation\r | |
442 | powx653 power -Inf sNaN -> NaN Invalid_operation\r | |
443 | powx654 power -1000 sNaN -> NaN Invalid_operation\r | |
444 | powx655 power -1 sNaN -> NaN Invalid_operation\r | |
445 | powx656 power -0.5 sNaN -> NaN Invalid_operation\r | |
446 | powx657 power -0 sNaN -> NaN Invalid_operation\r | |
447 | powx658 power 0 sNaN -> NaN Invalid_operation\r | |
448 | powx659 power 0.5 sNaN -> NaN Invalid_operation\r | |
449 | powx660 power 1 sNaN -> NaN Invalid_operation\r | |
450 | powx661 power 1000 sNaN -> NaN Invalid_operation\r | |
451 | powx662 power Inf sNaN -> NaN Invalid_operation\r | |
452 | powx663 power NaN sNaN -> NaN Invalid_operation\r | |
453 | \r | |
454 | -- NaN propagation\r | |
455 | powx670 power NaN3 sNaN7 -> NaN7 Invalid_operation\r | |
456 | powx671 power sNaN8 NaN6 -> NaN8 Invalid_operation\r | |
457 | powx672 power 1 sNaN7 -> NaN7 Invalid_operation\r | |
458 | powx673 power sNaN8 1 -> NaN8 Invalid_operation\r | |
459 | powx674 power Inf sNaN7 -> NaN7 Invalid_operation\r | |
460 | powx675 power sNaN8 Inf -> NaN8 Invalid_operation\r | |
461 | powx676 power Inf NaN9 -> NaN9\r | |
462 | powx677 power NaN6 Inf -> NaN6\r | |
463 | powx678 power 1 NaN5 -> NaN5\r | |
464 | powx679 power NaN2 1 -> NaN2\r | |
465 | powx680 power NaN2 Nan4 -> NaN2\r | |
466 | powx681 power NaN Nan4 -> NaN\r | |
467 | powx682 power NaN345 Nan -> NaN345\r | |
468 | powx683 power Inf -sNaN7 -> -NaN7 Invalid_operation\r | |
469 | powx684 power -sNaN8 Inf -> -NaN8 Invalid_operation\r | |
470 | powx685 power Inf -NaN9 -> -NaN9\r | |
471 | powx686 power -NaN6 Inf -> -NaN6\r | |
472 | powx687 power -NaN2 -Nan4 -> -NaN2\r | |
473 | \r | |
474 | -- long operand and RHS range checks\r | |
475 | maxexponent: 999\r | |
476 | minexponent: -999\r | |
477 | precision: 9\r | |
478 | powx701 power 12345678000 1 -> 1.23456780E+10 Rounded\r | |
479 | powx702 power 1234567800 1 -> 1.23456780E+9 Rounded\r | |
480 | powx703 power 1234567890 1 -> 1.23456789E+9 Rounded\r | |
481 | powx704 power 1234567891 1 -> 1.23456789E+9 Inexact Rounded\r | |
482 | powx705 power 12345678901 1 -> 1.23456789E+10 Inexact Rounded\r | |
483 | powx706 power 1234567896 1 -> 1.23456790E+9 Inexact Rounded\r | |
484 | \r | |
485 | precision: 15\r | |
486 | -- still checking\r | |
487 | powx741 power 12345678000 1 -> 12345678000\r | |
488 | powx742 power 1234567800 1 -> 1234567800\r | |
489 | powx743 power 1234567890 1 -> 1234567890\r | |
490 | powx744 power 1234567891 1 -> 1234567891\r | |
491 | powx745 power 12345678901 1 -> 12345678901\r | |
492 | powx746 power 1234567896 1 -> 1234567896\r | |
493 | \r | |
494 | maxexponent: 999999\r | |
495 | minexponent: -999999\r | |
496 | precision: 9\r | |
497 | \r | |
498 | -- near out-of-range edge cases\r | |
499 | powx163 power '10' '999999' -> '1.00000000E+999999' Rounded\r | |
500 | powx164 power '10' '999998' -> '1.00000000E+999998' Rounded\r | |
501 | powx165 power '10' '999997' -> '1.00000000E+999997' Rounded\r | |
502 | powx166 power '10' '333333' -> '1.00000000E+333333' Rounded\r | |
503 | powx183 power '7' '1000000' -> 1.09651419E+845098 Inexact Rounded\r | |
504 | powx184 power '7' '1000001' -> 7.67559934E+845098 Inexact Rounded\r | |
505 | powx186 power '7' '-1000001' -> 1.30282986E-845099 Inexact Rounded\r | |
506 | powx187 power '7' '-1000000' -> 9.11980901E-845099 Inexact Rounded\r | |
507 | powx118 power '10' '-333333' -> 1E-333333\r | |
508 | powx119 power '10' '-999998' -> 1E-999998\r | |
509 | powx120 power '10' '-999999' -> 1E-999999\r | |
510 | powx181 power '7' '999998' -> 2.23778406E+845096 Inexact Rounded\r | |
511 | powx182 power '7' '999999' -> 1.56644884E+845097 Inexact Rounded\r | |
512 | powx189 power '7' '-999999' -> 6.38386631E-845098 Inexact Rounded\r | |
513 | powx190 power '7' '-999998' -> 4.46870641E-845097 Inexact Rounded\r | |
514 | \r | |
515 | -- overflow and underflow tests\r | |
516 | precision: 9\r | |
517 | \r | |
518 | powx277 power 9 999999 -> 3.59084629E+954241 Inexact Rounded\r | |
519 | powx278 power 9.99999999 999999 -> 9.99000501E+999998 Inexact Rounded\r | |
520 | powx279 power 10 999999 -> 1.00000000E+999999 Rounded\r | |
521 | powx280 power 10.0000001 999999 -> 1.01005016E+999999 Inexact Rounded\r | |
522 | powx281 power 10.000001 999999 -> 1.10517080E+999999 Inexact Rounded\r | |
523 | powx282 power 10.00001 999999 -> 2.71827775E+999999 Inexact Rounded\r | |
524 | powx283 power 10.0001 999999 -> Infinity Overflow Inexact Rounded\r | |
525 | powx285 power 11 999999 -> Infinity Overflow Inexact Rounded\r | |
526 | powx286 power 12 999999 -> Infinity Overflow Inexact Rounded\r | |
527 | powx287 power 999 999999 -> Infinity Overflow Inexact Rounded\r | |
528 | powx288 power 999999999 999999 -> Infinity Overflow Inexact Rounded\r | |
529 | powx289 power 9.9E999999999 999999 -> Infinity Overflow Inexact Rounded\r | |
530 | \r | |
531 | powx290 power 0.5 999999 -> 2.02006812E-301030 Inexact Rounded\r | |
532 | powx291 power 0.1 999999 -> 1E-999999 -- unrounded\r | |
533 | powx292 power 0.09 999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
534 | powx293 power 0.05 999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
535 | powx294 power 0.01 999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
536 | powx295 power 0.0001 999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
537 | powx297 power 0.0000001 999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
538 | powx298 power 0.0000000001 999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
539 | powx299 power 1E-999999999 999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
540 | \r | |
541 | powx310 power -9 999999 -> -3.59084629E+954241 Inexact Rounded\r | |
542 | powx311 power -10 999999 -> -1.00000000E+999999 Rounded\r | |
543 | powx312 power -10.0001 999999 -> -Infinity Overflow Inexact Rounded\r | |
544 | powx313 power -10.1 999999 -> -Infinity Overflow Inexact Rounded\r | |
545 | powx314 power -11 999999 -> -Infinity Overflow Inexact Rounded\r | |
546 | powx315 power -12 999999 -> -Infinity Overflow Inexact Rounded\r | |
547 | powx316 power -999 999999 -> -Infinity Overflow Inexact Rounded\r | |
548 | powx317 power -999999 999999 -> -Infinity Overflow Inexact Rounded\r | |
549 | powx318 power -999999999 999999 -> -Infinity Overflow Inexact Rounded\r | |
550 | powx319 power -9.9E999999999 999999 -> -Infinity Overflow Inexact Rounded\r | |
551 | \r | |
552 | powx320 power -0.5 999999 -> -2.02006812E-301030 Inexact Rounded\r | |
553 | powx321 power -0.1 999999 -> -1E-999999\r | |
554 | powx322 power -0.09 999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
555 | powx323 power -0.05 999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
556 | powx324 power -0.01 999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
557 | powx325 power -0.0001 999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
558 | powx327 power -0.0000001 999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
559 | powx328 power -0.0000000001 999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
560 | powx329 power -1E-999999999 999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
561 | \r | |
562 | -- note no trim of next result\r | |
563 | powx330 power -9 999998 -> 3.98982921E+954240 Inexact Rounded\r | |
564 | powx331 power -10 999998 -> 1.00000000E+999998 Rounded\r | |
565 | powx332 power -10.0001 999998 -> Infinity Overflow Inexact Rounded\r | |
566 | powx333 power -10.1 999998 -> Infinity Overflow Inexact Rounded\r | |
567 | powx334 power -11 999998 -> Infinity Overflow Inexact Rounded\r | |
568 | powx335 power -12 999998 -> Infinity Overflow Inexact Rounded\r | |
569 | powx336 power -999 999998 -> Infinity Overflow Inexact Rounded\r | |
570 | powx337 power -999999 999998 -> Infinity Overflow Inexact Rounded\r | |
571 | powx338 power -999999999 999998 -> Infinity Overflow Inexact Rounded\r | |
572 | powx339 power -9.9E999999999 999998 -> Infinity Overflow Inexact Rounded\r | |
573 | \r | |
574 | powx340 power -0.5 999998 -> 4.04013624E-301030 Inexact Rounded\r | |
575 | powx341 power -0.1 999998 -> 1E-999998 -- NB exact unrounded\r | |
576 | powx342 power -0.09 999998 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
577 | powx343 power -0.05 999998 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
578 | powx344 power -0.01 999998 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
579 | powx345 power -0.0001 999998 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
580 | powx347 power -0.0000001 999998 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
581 | powx348 power -0.0000000001 999998 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
582 | powx349 power -1E-999999999 999998 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
583 | \r | |
584 | -- some subnormals\r | |
585 | precision: 9\r | |
586 | -- [precision is 9, so smallest exponent is -1000000007\r | |
587 | powx350 power 1e-1 500000 -> 1E-500000\r | |
588 | powx351 power 1e-2 999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
589 | powx352 power 1e-2 500000 -> 1E-1000000 Subnormal\r | |
590 | powx353 power 1e-2 500001 -> 1E-1000002 Subnormal\r | |
591 | powx354 power 1e-2 500002 -> 1E-1000004 Subnormal\r | |
592 | powx355 power 1e-2 500003 -> 1E-1000006 Subnormal\r | |
593 | powx356 power 1e-2 500004 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
594 | \r | |
595 | powx360 power 0.010001 500000 -> 5.17176082E-999979 Inexact Rounded\r | |
596 | powx361 power 0.010000001 500000 -> 1.0512711E-1000000 Underflow Subnormal Inexact Rounded\r | |
597 | powx362 power 0.010000001 500001 -> 1.05127E-1000002 Underflow Subnormal Inexact Rounded\r | |
598 | powx363 power 0.0100000009 500000 -> 1.0460279E-1000000 Underflow Subnormal Inexact Rounded\r | |
599 | powx364 power 0.0100000001 500000 -> 1.0050125E-1000000 Underflow Subnormal Inexact Rounded\r | |
600 | powx365 power 0.01 500000 -> 1E-1000000 Subnormal\r | |
601 | powx366 power 0.0099999999 500000 -> 9.950125E-1000001 Underflow Subnormal Inexact Rounded\r | |
602 | powx367 power 0.0099999998 500000 -> 9.900498E-1000001 Underflow Subnormal Inexact Rounded\r | |
603 | powx368 power 0.0099999997 500000 -> 9.851119E-1000001 Underflow Subnormal Inexact Rounded\r | |
604 | powx369 power 0.0099999996 500000 -> 9.801987E-1000001 Underflow Subnormal Inexact Rounded\r | |
605 | powx370 power 0.009 500000 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r | |
606 | \r | |
607 | -- 1/subnormal -> overflow\r | |
608 | powx371 power 1e-1 -500000 -> 1E+500000\r | |
609 | powx372 power 1e-2 -999999 -> Infinity Overflow Inexact Rounded\r | |
610 | powx373 power 1e-2 -500000 -> Infinity Overflow Inexact Rounded\r | |
611 | powx374 power 1e-2 -500001 -> Infinity Overflow Inexact Rounded\r | |
612 | powx375 power 1e-2 -500002 -> Infinity Overflow Inexact Rounded\r | |
613 | powx376 power 1e-2 -500003 -> Infinity Overflow Inexact Rounded\r | |
614 | powx377 power 1e-2 -500004 -> Infinity Overflow Inexact Rounded\r | |
615 | \r | |
616 | powx381 power 0.010001 -500000 -> 1.93357743E+999978 Inexact Rounded\r | |
617 | powx382 power 0.010000001 -500000 -> 9.51229427E+999999 Inexact Rounded\r | |
618 | powx383 power 0.010000001 -500001 -> Infinity Overflow Inexact Rounded\r | |
619 | powx384 power 0.0100000009 -500000 -> 9.55997484E+999999 Inexact Rounded\r | |
620 | powx385 power 0.0100000001 -500000 -> 9.95012479E+999999 Inexact Rounded\r | |
621 | powx386 power 0.01 -500000 -> Infinity Overflow Inexact Rounded\r | |
622 | powx387 power 0.009999 -500000 -> Infinity Overflow Inexact Rounded\r | |
623 | \r | |
624 | -- negative power giving subnormal\r | |
625 | powx388 power 100.000001 -500000 -> 9.950125E-1000001 Underflow Subnormal Inexact Rounded\r | |
626 | \r | |
627 | \r | |
628 | -- test some 'false integer' boundaries\r | |
629 | precision: 16\r | |
630 | rounding: half_even\r | |
631 | maxExponent: 384\r | |
632 | minExponent: -383\r | |
633 | powx501 power 100 1E+1 -> 1.000000000000000E+20 Rounded\r | |
634 | powx502 power 100 1E+2 -> 1.000000000000000E+200 Rounded\r | |
635 | powx503 power 100 1E+3 -> Infinity Overflow Inexact Rounded\r | |
636 | powx504 power 100 1E+4 -> Infinity Overflow Inexact Rounded\r | |
637 | powx505 power 100 1E+5 -> Infinity Overflow Inexact Rounded\r | |
638 | powx506 power 100 1E+6 -> Infinity Overflow Inexact Rounded\r | |
639 | powx507 power 100 1E+7 -> Infinity Overflow Inexact Rounded\r | |
640 | powx508 power 100 1E+8 -> Infinity Overflow Inexact Rounded\r | |
641 | powx509 power 100 1E+9 -> Infinity Overflow Inexact Rounded\r | |
642 | powx510 power 100 1E+10 -> Infinity Overflow Inexact Rounded\r | |
643 | powx511 power 100 1E+11 -> Infinity Overflow Inexact Rounded\r | |
644 | powx512 power 100 1E+12 -> Infinity Overflow Inexact Rounded\r | |
645 | powx513 power 100 1E+13 -> Infinity Overflow Inexact Rounded\r | |
646 | powx514 power 100 1E+14 -> Infinity Overflow Inexact Rounded\r | |
647 | powx515 power 100 1E+15 -> Infinity Overflow Inexact Rounded\r | |
648 | powx516 power 100 1E+16 -> Infinity Overflow Inexact Rounded\r | |
649 | powx517 power 100 1E+17 -> Infinity Overflow Inexact Rounded\r | |
650 | powx518 power 100 1E+18 -> Infinity Overflow Inexact Rounded\r | |
651 | powx519 power 100 1E+19 -> Infinity Overflow Inexact Rounded\r | |
652 | powx520 power 100 1E+20 -> Infinity Overflow Inexact Rounded\r | |
653 | powx521 power 100 1E+21 -> Infinity Overflow Inexact Rounded\r | |
654 | powx522 power 100 1E+22 -> Infinity Overflow Inexact Rounded\r | |
655 | powx523 power 100 1E+23 -> Infinity Overflow Inexact Rounded\r | |
656 | powx524 power 100 1E+24 -> Infinity Overflow Inexact Rounded\r | |
657 | powx525 power 100 1E+25 -> Infinity Overflow Inexact Rounded\r | |
658 | powx526 power 100 1E+26 -> Infinity Overflow Inexact Rounded\r | |
659 | powx527 power 100 1E+27 -> Infinity Overflow Inexact Rounded\r | |
660 | powx528 power 100 1E+28 -> Infinity Overflow Inexact Rounded\r | |
661 | powx529 power 100 1E+29 -> Infinity Overflow Inexact Rounded\r | |
662 | powx530 power 100 1E+30 -> Infinity Overflow Inexact Rounded\r | |
663 | powx531 power 100 1E+40 -> Infinity Overflow Inexact Rounded\r | |
664 | powx532 power 100 1E+50 -> Infinity Overflow Inexact Rounded\r | |
665 | powx533 power 100 1E+100 -> Infinity Overflow Inexact Rounded\r | |
666 | powx534 power 100 1E+383 -> Infinity Overflow Inexact Rounded\r | |
667 | \r | |
668 | -- a check for double-rounded subnormals\r | |
669 | precision: 5\r | |
670 | maxexponent: 79\r | |
671 | minexponent: -79\r | |
672 | powx750 power 1.2347E-40 2 -> 1.524E-80 Inexact Rounded Subnormal Underflow\r | |
673 | \r | |
674 | -- Null tests\r | |
675 | powx900 power 1 # -> NaN Invalid_operation\r | |
676 | powx901 power # 1 -> NaN Invalid_operation\r | |
677 | \r | |
678 | ----------------------------------------------------------------------\r | |
679 | -- Below here are tests with a precision or context outside of the --\r | |
680 | -- decNumber 'mathematical functions' restricted range. These --\r | |
681 | -- remain supported in decNumber to minimize breakage, but may be --\r | |
682 | -- outside the range of other implementations. --\r | |
683 | ----------------------------------------------------------------------\r | |
684 | maxexponent: 999999999\r | |
685 | minexponent: -999999999\r | |
686 | precision: 9\r | |
687 | powx1063 power '10' '999999999' -> '1.00000000E+999999999' Rounded\r | |
688 | powx1064 power '10' '999999998' -> '1.00000000E+999999998' Rounded\r | |
689 | powx1065 power '10' '999999997' -> '1.00000000E+999999997' Rounded\r | |
690 | powx1066 power '10' '333333333' -> '1.00000000E+333333333' Rounded\r | |
691 | -- next two are integer-out-of range\r | |
692 | powx1183 power '7' '1000000000' -> NaN Invalid_context\r | |
693 | powx1184 power '7' '1000000001' -> NaN Invalid_context\r | |
694 | powx1186 power '7' '-1000000001' -> 1.38243630E-845098041 Inexact Rounded\r | |
695 | powx1187 power '7' '-1000000000' -> 9.67705411E-845098041 Inexact Rounded\r | |
696 | \r | |
697 | -- out-of-range edge cases\r | |
698 | powx1118 power '10' '-333333333' -> 1E-333333333\r | |
699 | powx1119 power '10' '-999999998' -> 1E-999999998\r | |
700 | powx1120 power '10' '-999999999' -> 1E-999999999\r | |
701 | powx1181 power '7' '999999998' -> 2.10892313E+845098038 Inexact Rounded\r | |
702 | powx1182 power '7' '999999999' -> 1.47624619E+845098039 Inexact Rounded\r | |
703 | powx1189 power '7' '-999999999' -> 6.77393787E-845098040 Inexact Rounded\r | |
704 | powx1190 power '7' '-999999998' -> 4.74175651E-845098039 Inexact Rounded\r | |
705 | \r | |
706 | -- A (rare) case where the last digit is not within 0.5 ULP with classic precision\r | |
707 | precision: 9\r | |
708 | powx1215 power "-21971575.0E+31454441" "-7" -> "-4.04549502E-220181139" Inexact Rounded\r | |
709 | precision: 20\r | |
710 | powx1216 power "-21971575.0E+31454441" "-7" -> "-4.0454950249324891788E-220181139" Inexact Rounded\r | |
711 | \r | |
712 | -- overflow and underflow tests\r | |
713 | precision: 9\r | |
714 | powx1280 power 9 999999999 -> 3.05550054E+954242508 Inexact Rounded\r | |
715 | powx1281 power 10 999999999 -> 1.00000000E+999999999 Rounded\r | |
716 | powx1282 power 10.0001 999999999 -> Infinity Overflow Inexact Rounded\r | |
717 | powx1283 power 10.1 999999999 -> Infinity Overflow Inexact Rounded\r | |
718 | powx1284 power 11 999999999 -> Infinity Overflow Inexact Rounded\r | |
719 | powx1285 power 12 999999999 -> Infinity Overflow Inexact Rounded\r | |
720 | powx1286 power 999 999999999 -> Infinity Overflow Inexact Rounded\r | |
721 | powx1287 power 999999 999999999 -> Infinity Overflow Inexact Rounded\r | |
722 | powx1288 power 999999999 999999999 -> Infinity Overflow Inexact Rounded\r | |
723 | powx1289 power 9.9E999999999 999999999 -> Infinity Overflow Inexact Rounded\r | |
724 | \r | |
725 | powx1290 power 0.5 999999999 -> 4.33559594E-301029996 Inexact Rounded\r | |
726 | powx1291 power 0.1 999999999 -> 1E-999999999 -- unrounded\r | |
727 | powx1292 power 0.09 999999999 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
728 | powx1293 power 0.05 999999999 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
729 | powx1294 power 0.01 999999999 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
730 | powx1295 power 0.0001 999999999 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
731 | powx1297 power 0.0000001 999999999 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
732 | powx1298 power 0.0000000001 999999999 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
733 | powx1299 power 1E-999999999 999999999 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
734 | \r | |
735 | powx1310 power -9 999999999 -> -3.05550054E+954242508 Inexact Rounded\r | |
736 | powx1311 power -10 999999999 -> -1.00000000E+999999999 Rounded\r | |
737 | powx1312 power -10.0001 999999999 -> -Infinity Overflow Inexact Rounded\r | |
738 | powx1313 power -10.1 999999999 -> -Infinity Overflow Inexact Rounded\r | |
739 | powx1314 power -11 999999999 -> -Infinity Overflow Inexact Rounded\r | |
740 | powx1315 power -12 999999999 -> -Infinity Overflow Inexact Rounded\r | |
741 | powx1316 power -999 999999999 -> -Infinity Overflow Inexact Rounded\r | |
742 | powx1317 power -999999 999999999 -> -Infinity Overflow Inexact Rounded\r | |
743 | powx1318 power -999999999 999999999 -> -Infinity Overflow Inexact Rounded\r | |
744 | powx1319 power -9.9E999999999 999999999 -> -Infinity Overflow Inexact Rounded\r | |
745 | \r | |
746 | powx1320 power -0.5 999999999 -> -4.33559594E-301029996 Inexact Rounded\r | |
747 | powx1321 power -0.1 999999999 -> -1E-999999999\r | |
748 | powx1322 power -0.09 999999999 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
749 | powx1323 power -0.05 999999999 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
750 | powx1324 power -0.01 999999999 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
751 | powx1325 power -0.0001 999999999 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
752 | powx1327 power -0.0000001 999999999 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
753 | powx1328 power -0.0000000001 999999999 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
754 | powx1329 power -1E-999999999 999999999 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
755 | \r | |
756 | -- note no trim of next result\r | |
757 | powx1330 power -9 999999998 -> 3.39500060E+954242507 Inexact Rounded\r | |
758 | powx1331 power -10 999999998 -> 1.00000000E+999999998 Rounded\r | |
759 | powx1332 power -10.0001 999999998 -> Infinity Overflow Inexact Rounded\r | |
760 | powx1333 power -10.1 999999998 -> Infinity Overflow Inexact Rounded\r | |
761 | powx1334 power -11 999999998 -> Infinity Overflow Inexact Rounded\r | |
762 | powx1335 power -12 999999998 -> Infinity Overflow Inexact Rounded\r | |
763 | powx1336 power -999 999999998 -> Infinity Overflow Inexact Rounded\r | |
764 | powx1337 power -999999 999999998 -> Infinity Overflow Inexact Rounded\r | |
765 | powx1338 power -999999999 999999998 -> Infinity Overflow Inexact Rounded\r | |
766 | powx1339 power -9.9E999999999 999999998 -> Infinity Overflow Inexact Rounded\r | |
767 | \r | |
768 | powx1340 power -0.5 999999998 -> 8.67119187E-301029996 Inexact Rounded\r | |
769 | powx1341 power -0.1 999999998 -> 1E-999999998 -- NB exact unrounded\r | |
770 | powx1342 power -0.09 999999998 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
771 | powx1343 power -0.05 999999998 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
772 | powx1344 power -0.01 999999998 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
773 | powx1345 power -0.0001 999999998 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
774 | powx1347 power -0.0000001 999999998 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
775 | powx1348 power -0.0000000001 999999998 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
776 | powx1349 power -1E-999999999 999999998 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
777 | \r | |
778 | -- some subnormals\r | |
779 | precision: 9\r | |
780 | -- [precision is 9, so smallest exponent is -1000000007\r | |
781 | powx1350 power 1e-1 500000000 -> 1E-500000000\r | |
782 | powx1351 power 1e-2 999999999 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
783 | powx1352 power 1e-2 500000000 -> 1E-1000000000 Subnormal\r | |
784 | powx1353 power 1e-2 500000001 -> 1E-1000000002 Subnormal\r | |
785 | powx1354 power 1e-2 500000002 -> 1E-1000000004 Subnormal\r | |
786 | powx1355 power 1e-2 500000003 -> 1E-1000000006 Subnormal\r | |
787 | powx1356 power 1e-2 500000004 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
788 | \r | |
789 | powx1360 power 0.010001 500000000 -> 4.34941988E-999978287 Inexact Rounded\r | |
790 | powx1361 power 0.010000001 500000000 -> 5.18469257E-999999979 Inexact Rounded\r | |
791 | powx1362 power 0.010000001 500000001 -> 5.18469309E-999999981 Inexact Rounded\r | |
792 | powx1363 power 0.0100000009 500000000 -> 3.49342003E-999999981 Inexact Rounded\r | |
793 | powx1364 power 0.0100000001 500000000 -> 1.48413155E-999999998 Inexact Rounded\r | |
794 | powx1365 power 0.01 500000000 -> 1E-1000000000 Subnormal\r | |
795 | powx1366 power 0.0099999999 500000000 -> 6.7379E-1000000003 Underflow Subnormal Inexact Rounded\r | |
796 | powx1367 power 0.0099999998 500000000 -> 4.54E-1000000005 Underflow Subnormal Inexact Rounded\r | |
797 | powx1368 power 0.0099999997 500000000 -> 3E-1000000007 Underflow Subnormal Inexact Rounded\r | |
798 | powx1369 power 0.0099999996 500000000 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
799 | powx1370 power 0.009 500000000 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped\r | |
800 | \r | |
801 | -- 1/subnormal -> overflow\r | |
802 | powx1371 power 1e-1 -500000000 -> 1E+500000000\r | |
803 | powx1372 power 1e-2 -999999999 -> Infinity Overflow Inexact Rounded\r | |
804 | powx1373 power 1e-2 -500000000 -> Infinity Overflow Inexact Rounded\r | |
805 | powx1374 power 1e-2 -500000001 -> Infinity Overflow Inexact Rounded\r | |
806 | powx1375 power 1e-2 -500000002 -> Infinity Overflow Inexact Rounded\r | |
807 | powx1376 power 1e-2 -500000003 -> Infinity Overflow Inexact Rounded\r | |
808 | powx1377 power 1e-2 -500000004 -> Infinity Overflow Inexact Rounded\r | |
809 | \r | |
810 | powx1381 power 0.010001 -500000000 -> 2.29915719E+999978286 Inexact Rounded\r | |
811 | powx1382 power 0.010000001 -500000000 -> 1.92875467E+999999978 Inexact Rounded\r | |
812 | powx1383 power 0.010000001 -500000001 -> 1.92875448E+999999980 Inexact Rounded\r | |
813 | powx1384 power 0.0100000009 -500000000 -> 2.86252438E+999999980 Inexact Rounded\r | |
814 | powx1385 power 0.0100000001 -500000000 -> 6.73794717E+999999997 Inexact Rounded\r | |
815 | powx1386 power 0.01 -500000000 -> Infinity Overflow Inexact Rounded\r | |
816 | powx1387 power 0.009999 -500000000 -> Infinity Overflow Inexact Rounded\r | |
817 | \r | |
818 | -- negative power giving subnormal\r | |
819 | powx1388 power 100.000001 -500000000 -> 6.7379E-1000000003 Underflow Subnormal Inexact Rounded\r | |
820 | \r | |
821 | ----------------------------------------------------------------------\r | |
822 | -- Below here are the tests with a non-integer rhs, including the --\r | |
823 | -- tests that previously caused Invalid operation. An integer-only --\r | |
824 | -- (on rhs) implementation should handle all the tests above as --\r | |
825 | -- shown, and would flag most of the following tests as Invalid. --\r | |
826 | ----------------------------------------------------------------------\r | |
827 | precision: 16\r | |
828 | rounding: half_even\r | |
829 | maxExponent: 384\r | |
830 | minExponent: -383\r | |
831 | \r | |
832 | powx2000 power 7 '10000000000' -> Infinity Overflow Inexact Rounded\r | |
833 | powx2001 power 2 '2.000001' -> 4.000002772589683 Inexact Rounded\r | |
834 | powx2002 power 2 '2.00000000' -> 4\r | |
835 | powx2003 power 2 '2.000000001' -> 4.000000002772589 Inexact Rounded\r | |
836 | powx2004 power 2 '2.0000000001' -> 4.000000000277259 Inexact Rounded\r | |
837 | powx2005 power 2 '2.00000000001' -> 4.000000000027726 Inexact Rounded\r | |
838 | powx2006 power 2 '2.000000000001' -> 4.000000000002773 Inexact Rounded\r | |
839 | powx2007 power 2 '2.0000000000001' -> 4.000000000000277 Inexact Rounded\r | |
840 | powx2008 power 2 '2.00000000000001' -> 4.000000000000028 Inexact Rounded\r | |
841 | powx2009 power 2 '2.000000000000001' -> 4.000000000000003 Inexact Rounded\r | |
842 | powx2010 power 2 '2.0000000000000001' -> 4.000000000000000 Inexact Rounded\r | |
843 | -- 1 234567890123456\r | |
844 | \r | |
845 | powx2011 power 1 1234 -> 1\r | |
846 | precision: 4\r | |
847 | powx2012 power 1 1234 -> 1\r | |
848 | precision: 3\r | |
849 | powx2013 power 1 1234 -> 1\r | |
850 | powx2014 power 1 12.34e+2 -> 1\r | |
851 | powx2015 power 1 12.3 -> 1.00 Inexact Rounded\r | |
852 | powx2016 power 1 12.0 -> 1\r | |
853 | powx2017 power 1 1.01 -> 1.00 Inexact Rounded\r | |
854 | powx2018 power 2 1.00 -> 2\r | |
855 | powx2019 power 2 2.00 -> 4\r | |
856 | precision: 9\r | |
857 | powx2030 power 1 1.0001 -> 1.00000000 Inexact Rounded\r | |
858 | powx2031 power 1 1.0000001 -> 1.00000000 Inexact Rounded\r | |
859 | powx2032 power 1 1.0000000001 -> 1.00000000 Inexact Rounded\r | |
860 | powx2033 power 1 1.0000000000001 -> 1.00000000 Inexact Rounded\r | |
861 | precision: 5\r | |
862 | powx2034 power 1 1.0001 -> 1.0000 Inexact Rounded\r | |
863 | powx2035 power 1 1.0000001 -> 1.0000 Inexact Rounded\r | |
864 | powx2036 power 1 1.0000000001 -> 1.0000 Inexact Rounded\r | |
865 | powx2037 power 1 1.0000000000001 -> 1.0000 Inexact Rounded\r | |
866 | powx2038 power 1 1.0000000000001 -> 1.0000 Inexact Rounded\r | |
867 | \r | |
868 | rounding: ceiling\r | |
869 | precision: 3\r | |
870 | powx2039 power 1 1.01 -> 1.00 Inexact Rounded\r | |
871 | powx2040 power 1 12.3 -> 1.00 Inexact Rounded\r | |
872 | rounding: half_even\r | |
873 | \r | |
874 | -- 1 ** any integer, including big ones, should be exact\r | |
875 | powx2041 power 1 1000000000 -> 1\r | |
876 | powx2042 power 1 9999999999 -> 1\r | |
877 | powx2043 power 1 12345678000 -> 1\r | |
878 | powx2044 power 1 1234567800 -> 1\r | |
879 | powx2045 power 1 1234567890 -> 1\r | |
880 | powx2046 power 1 11234567891 -> 1\r | |
881 | powx2047 power 1 12345678901 -> 1\r | |
882 | powx2048 power 1 1234567896 -> 1\r | |
883 | powx2049 power 1 -1234567896 -> 1\r | |
884 | powx2051 power 1 1000000000 -> 1\r | |
885 | powx2052 power 1 -1000000000 -> 1\r | |
886 | powx2053 power 1 12345678000 -> 1\r | |
887 | powx2054 power 1 -1234567896 -> 1\r | |
888 | powx2055 power 1 1000000000 -> 1\r | |
889 | powx2056 power 1 4300000000 -> 1\r | |
890 | powx2057 power 1 -1000000000 -> 1\r | |
891 | -- negatives ... but not out of range for decNumber\r | |
892 | powx2061 power -1 100000 -> 1\r | |
893 | powx2062 power -1 999999 -> -1\r | |
894 | powx2063 power -1 1278000 -> 1\r | |
895 | powx2064 power -1 127803 -> -1\r | |
896 | powx2065 power -1 127890 -> 1\r | |
897 | powx2066 power -1 1167891 -> -1\r | |
898 | powx2067 power -1 1278901 -> -1\r | |
899 | powx2068 power -1 127896 -> 1\r | |
900 | powx2069 power -1 -167897 -> -1\r | |
901 | powx2071 power -1 100000 -> 1\r | |
902 | powx2072 power -1 -100001 -> -1\r | |
903 | powx2073 power -1 1278000 -> 1\r | |
904 | powx2074 power -1 -167896 -> 1\r | |
905 | powx2075 power -1 100000 -> 1\r | |
906 | powx2076 power -1 -100009 -> -1\r | |
907 | \r | |
908 | -- The above were derived from the earlier version of power.decTest;\r | |
909 | -- now start new tests for power(x,y) for non-integer y\r | |
910 | precision: 9\r | |
911 | \r | |
912 | -- tests from specification\r | |
913 | powx2081 power 2 3 -> '8'\r | |
914 | powx2082 power -2 3 -> '-8'\r | |
915 | powx2083 power 2 -3 -> '0.125'\r | |
916 | powx2084 power 1.7 '8' -> '69.7575744' Inexact Rounded\r | |
917 | powx2085 power 10 0.301029996 -> 2.00000000 Inexact Rounded\r | |
918 | powx2086 power Infinity '-1' -> '0'\r | |
919 | powx2087 power Infinity '0' -> '1'\r | |
920 | powx2088 power Infinity '1' -> 'Infinity'\r | |
921 | powx2089 power -Infinity '-1' -> '-0'\r | |
922 | powx2090 power -Infinity '0' -> '1'\r | |
923 | powx2091 power -Infinity '1' -> '-Infinity'\r | |
924 | powx2092 power -Infinity '2' -> 'Infinity'\r | |
925 | powx2093 power 0 0 -> 'NaN' Invalid_operation\r | |
926 | \r | |
927 | precision: 16\r | |
928 | rounding: half_even\r | |
929 | maxExponent: 384\r | |
930 | minExponent: -383\r | |
931 | \r | |
932 | -- basics\r | |
933 | powx2100 power 1E-7 1E-7 -> 0.9999983881917339 Inexact Rounded\r | |
934 | powx2101 power 0.003 1E-7 -> 0.9999994190858697 Inexact Rounded\r | |
935 | powx2102 power 0.7 1E-7 -> 0.9999999643325062 Inexact Rounded\r | |
936 | powx2103 power 1.2 1E-7 -> 1.000000018232156 Inexact Rounded\r | |
937 | powx2104 power 71 1E-7 -> 1.000000426268079 Inexact Rounded\r | |
938 | powx2105 power 9E+9 1E-7 -> 1.000002292051668 Inexact Rounded\r | |
939 | \r | |
940 | powx2110 power 1E-7 0.003 -> 0.9527961640236519 Inexact Rounded\r | |
941 | powx2111 power 0.003 0.003 -> 0.9827235503366797 Inexact Rounded\r | |
942 | powx2112 power 0.7 0.003 -> 0.9989305474406207 Inexact Rounded\r | |
943 | powx2113 power 1.2 0.003 -> 1.000547114282834 Inexact Rounded\r | |
944 | powx2114 power 71 0.003 -> 1.012870156273545 Inexact Rounded\r | |
945 | powx2115 power 9E+9 0.003 -> 1.071180671278787 Inexact Rounded\r | |
946 | \r | |
947 | powx2120 power 1E-7 0.7 -> 0.00001258925411794167 Inexact Rounded\r | |
948 | powx2121 power 0.003 0.7 -> 0.01713897630281030 Inexact Rounded\r | |
949 | powx2122 power 0.7 0.7 -> 0.7790559126704491 Inexact Rounded\r | |
950 | powx2123 power 1.2 0.7 -> 1.136126977198889 Inexact Rounded\r | |
951 | powx2124 power 71 0.7 -> 19.76427300093870 Inexact Rounded\r | |
952 | powx2125 power 9E+9 0.7 -> 9289016.976853710 Inexact Rounded\r | |
953 | \r | |
954 | powx2130 power 1E-7 1.2 -> 3.981071705534973E-9 Inexact Rounded\r | |
955 | powx2131 power 0.003 1.2 -> 0.0009387403933595694 Inexact Rounded\r | |
956 | powx2132 power 0.7 1.2 -> 0.6518049405663864 Inexact Rounded\r | |
957 | powx2133 power 1.2 1.2 -> 1.244564747203978 Inexact Rounded\r | |
958 | powx2134 power 71 1.2 -> 166.5367244638552 Inexact Rounded\r | |
959 | powx2135 power 9E+9 1.2 -> 881233526124.8791 Inexact Rounded\r | |
960 | \r | |
961 | powx2140 power 1E-7 71 -> 0E-398 Inexact Rounded Underflow Subnormal Clamped\r | |
962 | powx2141 power 0.003 71 -> 7.509466514979725E-180 Inexact Rounded\r | |
963 | powx2142 power 0.7 71 -> 1.004525211269079E-11 Inexact Rounded\r | |
964 | powx2143 power 1.2 71 -> 418666.7483186515 Inexact Rounded\r | |
965 | powx2144 power 71 71 -> 2.750063734834616E+131 Inexact Rounded\r | |
966 | powx2145 power 9E+9 71 -> Infinity Inexact Rounded Overflow\r | |
967 | \r | |
968 | powx2150 power 1E-7 9E+9 -> 0E-398 Inexact Rounded Underflow Subnormal Clamped\r | |
969 | powx2151 power 0.003 9E+9 -> 0E-398 Inexact Rounded Underflow Subnormal Clamped\r | |
970 | powx2152 power 0.7 9E+9 -> 0E-398 Inexact Rounded Underflow Subnormal Clamped\r | |
971 | powx2153 power 1.2 9E+9 -> Infinity Inexact Rounded Overflow\r | |
972 | powx2154 power 71 9E+9 -> Infinity Inexact Rounded Overflow\r | |
973 | powx2155 power 9E+9 9E+9 -> Infinity Inexact Rounded Overflow\r | |
974 | \r | |
975 | -- number line milestones with lhs<1 and lhs>1\r | |
976 | \r | |
977 | -- Overflow boundary (Nmax)\r | |
978 | powx2202 power 71 207.966651583983200 -> Infinity Inexact Rounded Overflow\r | |
979 | powx2201 power 71 207.966651583983199 -> 9.999999999999994E+384 Inexact Rounded\r | |
980 | powx2204 power 0.003 -152.603449817093577 -> Infinity Inexact Rounded Overflow\r | |
981 | powx2203 power 0.003 -152.603449817093576 -> 9.999999999999994E+384 Inexact Rounded\r | |
982 | \r | |
983 | -- Nmin boundary\r | |
984 | powx2211 power 71 -206.886305341988480 -> 1.000000000000005E-383 Inexact Rounded\r | |
985 | powx2212 power 71 -206.886305341988481 -> 1.000000000000001E-383 Inexact Rounded\r | |
986 | powx2213 power 71 -206.886305341988482 -> 9.99999999999997E-384 Inexact Rounded Underflow Subnormal\r | |
987 | powx2214 power 71 -206.886305341988483 -> 9.99999999999992E-384 Inexact Rounded Underflow Subnormal\r | |
988 | -- 9.999999999999924565357019820\r | |
989 | \r | |
990 | powx2215 power 0.003 151.810704623238543 -> 1.000000000000009E-383 Inexact Rounded\r | |
991 | powx2216 power 0.003 151.810704623238544 -> 1.000000000000003E-383 Inexact Rounded\r | |
992 | powx2217 power 0.003 151.810704623238545 -> 9.99999999999997E-384 Inexact Rounded Underflow Subnormal\r | |
993 | powx2218 power 0.003 151.810704623238546 -> 9.99999999999991E-384 Inexact Rounded Underflow Subnormal\r | |
994 | \r | |
995 | -- Ntiny boundary, these edge cases determined using half_up rounding\r | |
996 | rounding: half_up\r | |
997 | powx2221 power 71 -215.151510469220498 -> 1E-398 Inexact Rounded Underflow Subnormal\r | |
998 | powx2222 power 71 -215.151510469220499 -> 1E-398 Inexact Rounded Underflow Subnormal\r | |
999 | powx2223 power 71 -215.151510469220500 -> 0E-398 Inexact Rounded Underflow Subnormal Clamped\r | |
1000 | powx2224 power 71 -215.151510469220501 -> 0E-398 Inexact Rounded Underflow Subnormal Clamped\r | |
1001 | \r | |
1002 | powx2225 power 0.003 157.875613618285691 -> 1E-398 Inexact Rounded Underflow Subnormal\r | |
1003 | powx2226 power 0.003 157.875613618285692 -> 1E-398 Inexact Rounded Underflow Subnormal\r | |
1004 | powx2227 power 0.003 157.875613618285693 -> 0E-398 Inexact Rounded Underflow Subnormal Clamped\r | |
1005 | powx2228 power 0.003 220 -> 0E-398 Inexact Rounded Underflow Subnormal Clamped\r | |
1006 | rounding: half_even\r | |
1007 | \r | |
1008 | -- power(10, y) are important ...\r | |
1009 | \r | |
1010 | -- Integer powers are exact, unless over/underflow\r | |
1011 | powx2301 power 10 385 -> Infinity Overflow Inexact Rounded\r | |
1012 | powx2302 power 10 384 -> 1.000000000000000E+384 Rounded\r | |
1013 | powx2303 power 10 17 -> 1.000000000000000E+17 Rounded\r | |
1014 | powx2304 power 10 16 -> 1.000000000000000E+16 Rounded\r | |
1015 | powx2305 power 10 15 -> 1000000000000000\r | |
1016 | powx2306 power 10 10 -> 10000000000\r | |
1017 | powx2307 power 10 5 -> 100000\r | |
1018 | powx2308 power 10 1 -> 10\r | |
1019 | powx2309 power 10 0 -> 1\r | |
1020 | powx2310 power 10 -1 -> 0.1\r | |
1021 | powx2311 power 10 -5 -> 0.00001\r | |
1022 | powx2312 power 10 -6 -> 0.000001\r | |
1023 | powx2313 power 10 -7 -> 1E-7\r | |
1024 | powx2314 power 10 -8 -> 1E-8\r | |
1025 | powx2315 power 10 -9 -> 1E-9\r | |
1026 | powx2316 power 10 -10 -> 1E-10\r | |
1027 | powx2317 power 10 -383 -> 1E-383\r | |
1028 | powx2318 power 10 -384 -> 1E-384 Subnormal\r | |
1029 | powx2319 power 10 -385 -> 1E-385 Subnormal\r | |
1030 | powx2320 power 10 -397 -> 1E-397 Subnormal\r | |
1031 | powx2321 power 10 -398 -> 1E-398 Subnormal\r | |
1032 | powx2322 power 10 -399 -> 0E-398 Subnormal Underflow Inexact Rounded Clamped\r | |
1033 | powx2323 power 10 -400 -> 0E-398 Subnormal Underflow Inexact Rounded Clamped\r | |
1034 | \r | |
1035 | -- Independent sanity check: 1961 Godfrey & Siddons four-figure logs\r | |
1036 | powx2351 power 10 0.0000 -> 1\r | |
1037 | powx2352 power 10 0.3010 -> 1.999861869632744 Inexact Rounded\r | |
1038 | powx2353 power 10 0.4771 -> 2.999853181190793 Inexact Rounded\r | |
1039 | powx2354 power 10 0.6021 -> 4.000368510461250 Inexact Rounded\r | |
1040 | powx2355 power 10 0.6990 -> 5.000345349769785 Inexact Rounded\r | |
1041 | powx2356 power 10 0.7782 -> 6.000673538641164 Inexact Rounded\r | |
1042 | powx2357 power 10 0.8451 -> 7.000031591308969 Inexact Rounded\r | |
1043 | powx2358 power 10 0.9031 -> 8.000184448550990 Inexact Rounded\r | |
1044 | powx2359 power 10 0.9542 -> 8.999119108700520 Inexact Rounded\r | |
1045 | powx2360 power 10 0.9956 -> 9.899197750805841 Inexact Rounded\r | |
1046 | powx2361 power 10 0.9996 -> 9.990793899844618 Inexact Rounded\r | |
1047 | precision: 4\r | |
1048 | powx2371 power 10 0.0000 -> 1\r | |
1049 | powx2372 power 10 0.3010 -> 2.000 Inexact Rounded\r | |
1050 | powx2373 power 10 0.4771 -> 3.000 Inexact Rounded\r | |
1051 | powx2374 power 10 0.6021 -> 4.000 Inexact Rounded\r | |
1052 | powx2375 power 10 0.6990 -> 5.000 Inexact Rounded\r | |
1053 | powx2376 power 10 0.7782 -> 6.001 Inexact Rounded\r | |
1054 | powx2377 power 10 0.8451 -> 7.000 Inexact Rounded\r | |
1055 | powx2378 power 10 0.9031 -> 8.000 Inexact Rounded\r | |
1056 | powx2379 power 10 0.9542 -> 8.999 Inexact Rounded\r | |
1057 | powx2380 power 10 0.9956 -> 9.899 Inexact Rounded\r | |
1058 | powx2381 power 10 0.9996 -> 9.991 Inexact Rounded\r | |
1059 | \r | |
1060 | -- 10**x ~=2 (inverse of the test in log10.decTest)\r | |
1061 | precision: 50\r | |
1062 | powx2401 power 10 0.30102999566398119521373889472449302676818988146211 -> 2.0000000000000000000000000000000000000000000000000 Inexact Rounded\r | |
1063 | precision: 49\r | |
1064 | powx2402 power 10 0.3010299956639811952137388947244930267681898814621 -> 2.000000000000000000000000000000000000000000000000 Inexact Rounded\r | |
1065 | precision: 48\r | |
1066 | powx2403 power 10 0.301029995663981195213738894724493026768189881462 -> 2.00000000000000000000000000000000000000000000000 Inexact Rounded\r | |
1067 | precision: 47\r | |
1068 | powx2404 power 10 0.30102999566398119521373889472449302676818988146 -> 2.0000000000000000000000000000000000000000000000 Inexact Rounded\r | |
1069 | precision: 46\r | |
1070 | powx2405 power 10 0.3010299956639811952137388947244930267681898815 -> 2.000000000000000000000000000000000000000000000 Inexact Rounded\r | |
1071 | precision: 45\r | |
1072 | powx2406 power 10 0.301029995663981195213738894724493026768189881 -> 2.00000000000000000000000000000000000000000000 Inexact Rounded\r | |
1073 | precision: 44\r | |
1074 | powx2407 power 10 0.30102999566398119521373889472449302676818988 -> 2.0000000000000000000000000000000000000000000 Inexact Rounded\r | |
1075 | precision: 43\r | |
1076 | powx2408 power 10 0.3010299956639811952137388947244930267681899 -> 2.000000000000000000000000000000000000000000 Inexact Rounded\r | |
1077 | precision: 42\r | |
1078 | powx2409 power 10 0.301029995663981195213738894724493026768190 -> 2.00000000000000000000000000000000000000000 Inexact Rounded\r | |
1079 | precision: 41\r | |
1080 | powx2410 power 10 0.30102999566398119521373889472449302676819 -> 2.0000000000000000000000000000000000000000 Inexact Rounded\r | |
1081 | precision: 40\r | |
1082 | powx2411 power 10 0.3010299956639811952137388947244930267682 -> 2.000000000000000000000000000000000000000 Inexact Rounded\r | |
1083 | precision: 39\r | |
1084 | powx2412 power 10 0.301029995663981195213738894724493026768 -> 2.00000000000000000000000000000000000000 Inexact Rounded\r | |
1085 | precision: 38\r | |
1086 | powx2413 power 10 0.30102999566398119521373889472449302677 -> 2.0000000000000000000000000000000000000 Inexact Rounded\r | |
1087 | precision: 37\r | |
1088 | powx2414 power 10 0.3010299956639811952137388947244930268 -> 2.000000000000000000000000000000000000 Inexact Rounded\r | |
1089 | precision: 36\r | |
1090 | powx2415 power 10 0.301029995663981195213738894724493027 -> 2.00000000000000000000000000000000000 Inexact Rounded\r | |
1091 | precision: 35\r | |
1092 | powx2416 power 10 0.30102999566398119521373889472449303 -> 2.0000000000000000000000000000000000 Inexact Rounded\r | |
1093 | precision: 34\r | |
1094 | powx2417 power 10 0.3010299956639811952137388947244930 -> 2.000000000000000000000000000000000 Inexact Rounded\r | |
1095 | precision: 33\r | |
1096 | powx2418 power 10 0.301029995663981195213738894724493 -> 2.00000000000000000000000000000000 Inexact Rounded\r | |
1097 | precision: 32\r | |
1098 | powx2419 power 10 0.30102999566398119521373889472449 -> 2.0000000000000000000000000000000 Inexact Rounded\r | |
1099 | precision: 31\r | |
1100 | powx2420 power 10 0.3010299956639811952137388947245 -> 2.000000000000000000000000000000 Inexact Rounded\r | |
1101 | precision: 30\r | |
1102 | powx2421 power 10 0.301029995663981195213738894725 -> 2.00000000000000000000000000000 Inexact Rounded\r | |
1103 | precision: 29\r | |
1104 | powx2422 power 10 0.30102999566398119521373889472 -> 2.0000000000000000000000000000 Inexact Rounded\r | |
1105 | precision: 28\r | |
1106 | powx2423 power 10 0.3010299956639811952137388947 -> 2.000000000000000000000000000 Inexact Rounded\r | |
1107 | precision: 27\r | |
1108 | powx2424 power 10 0.301029995663981195213738895 -> 2.00000000000000000000000000 Inexact Rounded\r | |
1109 | precision: 26\r | |
1110 | powx2425 power 10 0.30102999566398119521373889 -> 2.0000000000000000000000000 Inexact Rounded\r | |
1111 | precision: 25\r | |
1112 | powx2426 power 10 0.3010299956639811952137389 -> 2.000000000000000000000000 Inexact Rounded\r | |
1113 | precision: 24\r | |
1114 | powx2427 power 10 0.301029995663981195213739 -> 2.00000000000000000000000 Inexact Rounded\r | |
1115 | precision: 23\r | |
1116 | powx2428 power 10 0.30102999566398119521374 -> 2.0000000000000000000000 Inexact Rounded\r | |
1117 | precision: 22\r | |
1118 | powx2429 power 10 0.3010299956639811952137 -> 2.000000000000000000000 Inexact Rounded\r | |
1119 | precision: 21\r | |
1120 | powx2430 power 10 0.301029995663981195214 -> 2.00000000000000000000 Inexact Rounded\r | |
1121 | precision: 20\r | |
1122 | powx2431 power 10 0.30102999566398119521 -> 2.0000000000000000000 Inexact Rounded\r | |
1123 | precision: 19\r | |
1124 | powx2432 power 10 0.3010299956639811952 -> 2.000000000000000000 Inexact Rounded\r | |
1125 | precision: 18\r | |
1126 | powx2433 power 10 0.301029995663981195 -> 2.00000000000000000 Inexact Rounded\r | |
1127 | precision: 17\r | |
1128 | powx2434 power 10 0.30102999566398120 -> 2.0000000000000000 Inexact Rounded\r | |
1129 | precision: 16\r | |
1130 | powx2435 power 10 0.3010299956639812 -> 2.000000000000000 Inexact Rounded\r | |
1131 | precision: 15\r | |
1132 | powx2436 power 10 0.301029995663981 -> 2.00000000000000 Inexact Rounded\r | |
1133 | precision: 14\r | |
1134 | powx2437 power 10 0.30102999566398 -> 2.0000000000000 Inexact Rounded\r | |
1135 | precision: 13\r | |
1136 | powx2438 power 10 0.3010299956640 -> 2.000000000000 Inexact Rounded\r | |
1137 | precision: 12\r | |
1138 | powx2439 power 10 0.301029995664 -> 2.00000000000 Inexact Rounded\r | |
1139 | precision: 11\r | |
1140 | powx2440 power 10 0.30102999566 -> 2.0000000000 Inexact Rounded\r | |
1141 | precision: 10\r | |
1142 | powx2441 power 10 0.3010299957 -> 2.000000000 Inexact Rounded\r | |
1143 | precision: 9\r | |
1144 | powx2442 power 10 0.301029996 -> 2.00000000 Inexact Rounded\r | |
1145 | precision: 8\r | |
1146 | powx2443 power 10 0.30103000 -> 2.0000000 Inexact Rounded\r | |
1147 | precision: 7\r | |
1148 | powx2444 power 10 0.3010300 -> 2.000000 Inexact Rounded\r | |
1149 | precision: 6\r | |
1150 | powx2445 power 10 0.301030 -> 2.00000 Inexact Rounded\r | |
1151 | precision: 5\r | |
1152 | powx2446 power 10 0.30103 -> 2.0000 Inexact Rounded\r | |
1153 | precision: 4\r | |
1154 | powx2447 power 10 0.3010 -> 2.000 Inexact Rounded\r | |
1155 | precision: 3\r | |
1156 | powx2448 power 10 0.301 -> 2.00 Inexact Rounded\r | |
1157 | precision: 2\r | |
1158 | powx2449 power 10 0.30 -> 2.0 Inexact Rounded\r | |
1159 | precision: 1\r | |
1160 | powx2450 power 10 0.3 -> 2 Inexact Rounded\r | |
1161 | \r | |
1162 | maxExponent: 384\r | |
1163 | minExponent: -383\r | |
1164 | precision: 16\r | |
1165 | rounding: half_even\r | |
1166 | \r | |
1167 | -- Close-to-e tests\r | |
1168 | precision: 34\r | |
1169 | powx2500 power 10 0.4342944819032518276511289189166048 -> 2.718281828459045235360287471352661 Inexact Rounded\r | |
1170 | powx2501 power 10 0.4342944819032518276511289189166049 -> 2.718281828459045235360287471352661 Inexact Rounded\r | |
1171 | powx2502 power 10 0.4342944819032518276511289189166050 -> 2.718281828459045235360287471352662 Inexact Rounded\r | |
1172 | powx2503 power 10 0.4342944819032518276511289189166051 -> 2.718281828459045235360287471352663 Inexact Rounded\r | |
1173 | powx2504 power 10 0.4342944819032518276511289189166052 -> 2.718281828459045235360287471352663 Inexact Rounded\r | |
1174 | \r | |
1175 | -- e**e, 16->34\r | |
1176 | powx2505 power 2.718281828459045 2.718281828459045 -> '15.15426224147925705633739513098219' Inexact Rounded\r | |
1177 | \r | |
1178 | -- Sequence around an integer\r | |
1179 | powx2512 power 10 2.9999999999999999999999999999999997 -> 999.9999999999999999999999999999993 Inexact Rounded\r | |
1180 | powx2513 power 10 2.9999999999999999999999999999999998 -> 999.9999999999999999999999999999995 Inexact Rounded\r | |
1181 | powx2514 power 10 2.9999999999999999999999999999999999 -> 999.9999999999999999999999999999998 Inexact Rounded\r | |
1182 | powx2515 power 10 3.0000000000000000000000000000000000 -> 1000\r | |
1183 | powx2516 power 10 3.0000000000000000000000000000000001 -> 1000.000000000000000000000000000000 Inexact Rounded\r | |
1184 | powx2517 power 10 3.0000000000000000000000000000000002 -> 1000.000000000000000000000000000000 Inexact Rounded\r | |
1185 | powx2518 power 10 3.0000000000000000000000000000000003 -> 1000.000000000000000000000000000001 Inexact Rounded\r | |
1186 | \r | |
1187 | -- randomly generated tests\r | |
1188 | maxExponent: 384\r | |
1189 | minExponent: -383\r | |
1190 | \r | |
1191 | -- P=34, within 0-999 -- positive arg2\r | |
1192 | Precision: 34\r | |
1193 | powx3201 power 5.301557744131969249145904611290735 369.3175647984435534243813466380579 -> 3.427165676345688240023113326603960E+267 Inexact Rounded\r | |
1194 | powx3202 power 0.0000000000506875655819165973738225 21.93514102704466434121826965196878 -> 1.498169860033487321566659495340789E-226 Inexact Rounded\r | |
1195 | powx3203 power 97.88877680721519917858007810494043 5.159898445242793470476673109899554 -> 18705942904.43290467281449559427982 Inexact Rounded\r | |
1196 | powx3204 power 7.380441015594399747973924380493799 17.93614173904818313507525109033288 -> 3715757985820076.273336082702577274 Inexact Rounded\r | |
1197 | powx3205 power 2.045623627647350918819219169855040 1082.999652407430697958175966996254 -> 4.208806435006704867447150904279854E+336 Inexact Rounded\r | |
1198 | powx3206 power 0.0000000762582873112118926142955423 20.30534237055073996975203864170432 -> 2.967574278677013090697130349198877E-145 Inexact Rounded\r | |
1199 | powx3207 power 0.0000000000194091470907814855660535 14.71164213947722238856835440242911 -> 2.564391397469554735037158345963280E-158 Inexact Rounded\r | |
1200 | powx3208 power 0.0000000000509434185382818596853504 20.97051498204188277347203735421595 -> 1.420157372748083000927138678417272E-216 Inexact Rounded\r | |
1201 | powx3209 power 0.0005389217212073307301395750745119 43.96798225485747315858678755538971 -> 1.957850185781292007977898626137240E-144 Inexact Rounded\r | |
1202 | powx3210 power 498.5690105989136050444077447411198 128.1038813807243375878831104745803 -> 3.882212970903893127009102293596268E+345 Inexact Rounded\r | |
1203 | powx3211 power 0.0000000935428918637303954281938975 5.736933454863278597460091596496099 -> 4.733219644540496152403967823635195E-41 Inexact Rounded\r | |
1204 | powx3212 power 8.581586784734161309180363110126352 252.0229459968869784643374981477208 -> 1.907464842458674622356177850049873E+235 Inexact Rounded\r | |
1205 | powx3213 power 294.1005302951621709143320795278305 155.5466374141708615975111014663722 -> 9.251717033292072959166737280729728E+383 Inexact Rounded\r | |
1206 | powx3214 power 0.0000000041253343654396865855722090 19.00170974760425576247662125110472 -> 4.779566288553864405790921353593512E-160 Inexact Rounded\r | |
1207 | powx3215 power 0.0000000000046912257352141395184092 24.66089523148729269098773236636878 -> 4.205126874048597849476723538057527E-280 Inexact Rounded\r | |
1208 | powx3216 power 0.0000000000036796674296520639450494 22.09713956900694689234335912523078 -> 2.173081843837539818472071316420405E-253 Inexact Rounded\r | |
1209 | powx3217 power 9.659887100303037657934372148567685 277.3765665424320875993026404492216 -> 1.614974043145519382749740616665041E+273 Inexact Rounded\r | |
1210 | powx3218 power 0.0000083231310642229204398943076403 29.33123211782131466471359128190372 -> 1.013330439786660210757226597785328E-149 Inexact Rounded\r | |
1211 | powx3219 power 0.0938084859086450954956863725653664 262.6091918199905272837286784975012 -> 1.262802485286301066967555821509344E-270 Inexact Rounded\r | |
1212 | powx3220 power 8.194926977580900145696305910223304 184.3705133945546202012995485297248 -> 2.696353910907824016690021495828584E+168 Inexact Rounded\r | |
1213 | powx3221 power 72.39594594653085161522285114566120 168.7721909489321402152033939836725 -> 7.379858293630460043361584410795031E+313 Inexact Rounded\r | |
1214 | powx3222 power 0.0000000000003436856010144185445537 26.34329868961274988994452526178983 -> 4.585379573595865689605567720192768E-329 Inexact Rounded\r | |
1215 | powx3223 power 20.18365633762226550254542489492623 127.2099705237021350103678072707790 -> 1.020919629336979353690271762206060E+166 Inexact Rounded\r | |
1216 | powx3224 power 0.0000000553723990761530290129268131 8.157597566134754638015199501162405 -> 6.349030513396147480954474615067145E-60 Inexact Rounded\r | |
1217 | powx3225 power 0.0001028742674265840656614682618035 93.99842317306603797965470281716482 -> 1.455871110222736531854990397769940E-375 Inexact Rounded\r | |
1218 | powx3226 power 95.90195152775543876489746343266050 143.5992850002211509777720799352475 -> 3.881540015848530405189834366588567E+284 Inexact Rounded\r | |
1219 | powx3227 power 0.0000000000041783747057233878360333 12.14591167764993506821334760954430 -> 6.190998557456885985124592807383163E-139 Inexact Rounded\r | |
1220 | powx3228 power 0.5572830497086740798434917090018768 1001.921811263919522230330241349166 -> 3.871145158537170450093833881625838E-255 Inexact Rounded\r | |
1221 | powx3229 power 516.4754759779093954790813881333232 29.23812463126309057800793645336343 -> 2.110986192408878294012450052929185E+79 Inexact Rounded\r | |
1222 | powx3230 power 0.0000835892099464584776847299020706 27.64279992884843877453592659341588 -> 1.891535098905506689512376224943293E-113 Inexact Rounded\r | |
1223 | powx3231 power 72.45836577748571838139900165184955 166.2562890735032545091688015160084 -> 1.784091549041561516923092542939141E+309 Inexact Rounded\r | |
1224 | powx3232 power 305.1823317643335924007629563009032 83.01065159508472884219290136319623 -> 1.757493136164395229602456782779110E+206 Inexact Rounded\r | |
1225 | powx3233 power 7.108527102951713603542835791733786 145.7057852766236365450463428821948 -> 1.285934774113104362663619896550528E+124 Inexact Rounded\r | |
1226 | powx3234 power 6.471393503175464828149365697049824 64.11741937262455725284754171995720 -> 9.978990355881803195280027533011699E+51 Inexact Rounded\r | |
1227 | powx3235 power 39.72898094138459885662380866268385 239.9677288017447400786672779735168 -> 5.422218208517098335832848487375086E+383 Inexact Rounded\r | |
1228 | powx3236 power 0.0002865592332736973000183287329933 90.34733869590583787065642532641096 -> 8.293733126976212033209243257136796E-321 Inexact Rounded\r | |
1229 | powx3237 power 0.0000011343384394864811195077357936 1.926568285528399656789140809399396 -> 3.516055639378350146874261077470142E-12 Inexact Rounded\r | |
1230 | powx3238 power 0.0000000035321610295065299384889224 7.583861778824284092434085265265582 -> 7.970899823817369764381976286536230E-65 Inexact Rounded\r | |
1231 | powx3239 power 657.5028301569352677543770758346683 90.55778453811965116200206020172758 -> 1.522530898581564200655160665723268E+255 Inexact Rounded\r | |
1232 | powx3240 power 8.484756398325748879450577520251447 389.7468292476262478578280531222417 -> 8.595142803587368093392510310811218E+361 Inexact Rounded\r | |
1233 | \r | |
1234 | -- P=16, within 0-99 -- positive arg2\r | |
1235 | Precision: 16\r | |
1236 | powx3101 power 0.0000215524639223 48.37532522355252 -> 1.804663257287277E-226 Inexact Rounded\r | |
1237 | powx3102 power 00.80705856227999 2706.777535121391 -> 1.029625065876157E-252 Inexact Rounded\r | |
1238 | powx3103 power 3.445441676383689 428.5185892455830 -> 1.657401683096454E+230 Inexact Rounded\r | |
1239 | powx3104 power 0.0040158689495826 159.5725558816240 -> 4.255743665762492E-383 Inexact Rounded\r | |
1240 | powx3105 power 0.0000841553281215 38.32504413453944 -> 6.738653902512052E-157 Inexact Rounded\r | |
1241 | powx3106 power 0.7322610252571353 502.1254457674118 -> 1.109978126985943E-68 Inexact Rounded\r | |
1242 | powx3107 power 10.75052532144880 67.34180604734781 -> 2.873015019470189E+69 Inexact Rounded\r | |
1243 | powx3108 power 26.20425952945617 104.6002671186488 -> 2.301859355777030E+148 Inexact Rounded\r | |
1244 | powx3109 power 0.0000055737473850 31.16285859005424 -> 1.883348470100446E-164 Inexact Rounded\r | |
1245 | powx3110 power 61.06096011360700 10.93608439088726 -> 3.382686473028249E+19 Inexact Rounded\r | |
1246 | powx3111 power 9.340880853257137 179.9094938131726 -> 3.819299795937696E+174 Inexact Rounded\r | |
1247 | powx3112 power 0.0000050767371756 72.03346394186741 -> 4.216236691569869E-382 Inexact Rounded\r | |
1248 | powx3113 power 6.838478807860596 47.49665590602285 -> 4.547621630099203E+39 Inexact Rounded\r | |
1249 | powx3114 power 0.1299324346439081 397.7440523576938 -> 3.065047705553981E-353 Inexact Rounded\r | |
1250 | powx3115 power 0.0003418047034264 20.00516791512018 -> 4.546189665380487E-70 Inexact Rounded\r | |
1251 | powx3116 power 0.0001276899611715 78.12968287355703 -> 5.960217405063995E-305 Inexact Rounded\r | |
1252 | powx3117 power 25.93160588180509 252.6245071004620 -> 1.472171597589146E+357 Inexact Rounded\r | |
1253 | powx3118 power 35.47516857763178 86.14723037360925 -> 3.324299908481125E+133 Inexact Rounded\r | |
1254 | powx3119 power 0.0000048171086721 43.31965603038666 -> 4.572331516616228E-231 Inexact Rounded\r | |
1255 | powx3120 power 17.97652681097851 144.4684576550292 -> 1.842509906097860E+181 Inexact Rounded\r | |
1256 | powx3121 power 3.622765141518729 305.1948680344950 -> 4.132320967578704E+170 Inexact Rounded\r | |
1257 | powx3122 power 0.0080959002453519 143.9899444945627 -> 6.474627812947047E-302 Inexact Rounded\r | |
1258 | powx3123 power 9.841699927276571 299.2466668837188 -> 1.489097656208736E+297 Inexact Rounded\r | |
1259 | powx3124 power 0.0786659206232355 347.4750796962570 -> 2.05764809646925E-384 Inexact Rounded Underflow Subnormal\r | |
1260 | powx3125 power 0.0000084459792645 52.47348690745487 -> 6.076251876516942E-267 Inexact Rounded\r | |
1261 | powx3126 power 27.86589909967504 191.7296537102283 -> 1.157064112989386E+277 Inexact Rounded\r | |
1262 | powx3127 power 0.0000419907937234 58.44957702730767 -> 1.496950672075162E-256 Inexact Rounded\r | |
1263 | powx3128 power 0.0000664977739382 80.06749213261876 -> 3.488517620107875E-335 Inexact Rounded\r | |
1264 | powx3129 power 58.49554484886656 125.8480768373499 -> 2.449089862146640E+222 Inexact Rounded\r | |
1265 | powx3130 power 15.02820060024449 212.3527988973338 -> 8.307913932682067E+249 Inexact Rounded\r | |
1266 | powx3131 power 0.0002650089942992 30.92173123678761 -> 2.517827664836147E-111 Inexact Rounded\r | |
1267 | powx3132 power 0.0007342977426578 69.49168880741123 -> 1.600168665674440E-218 Inexact Rounded\r | |
1268 | powx3133 power 0.0063816068650629 150.1400094183812 -> 2.705057295799001E-330 Inexact Rounded\r | |
1269 | powx3134 power 9.912921122728791 297.8274013633411 -> 4.967624993438900E+296 Inexact Rounded\r | |
1270 | powx3135 power 1.988603563989245 768.4862967922182 -> 2.692842474899596E+229 Inexact Rounded\r | |
1271 | powx3136 power 8.418014519517691 164.2431359980725 -> 9.106211585888836E+151 Inexact Rounded\r | |
1272 | powx3137 power 6.068823604450686 120.2955212365837 -> 1.599431918105982E+94 Inexact Rounded\r | |
1273 | powx3138 power 56.90062738303850 54.90468294683645 -> 2.312839177902428E+96 Inexact Rounded\r | |
1274 | powx3139 power 5.710905139750871 73.44608752962156 -> 3.775876053709929E+55 Inexact Rounded\r | |
1275 | powx3140 power 0.0000017446761203 1.223981492228899 -> 8.952936595465635E-8 Inexact Rounded\r | |
1276 | \r | |
1277 | -- P=7, within 0-9 -- positive arg2\r | |
1278 | Precision: 7\r | |
1279 | powx3001 power 8.738689 55.96523 -> 4.878180E+52 Inexact Rounded\r | |
1280 | powx3002 power 0.0404763 147.4965 -> 3.689722E-206 Inexact Rounded\r | |
1281 | powx3003 power 0.0604232 76.69778 -> 3.319183E-94 Inexact Rounded\r | |
1282 | powx3004 power 0.0058855 107.5018 -> 1.768875E-240 Inexact Rounded\r | |
1283 | powx3005 power 2.058302 1173.050 -> 5.778899E+367 Inexact Rounded\r | |
1284 | powx3006 power 0.0056998 85.70157 -> 4.716783E-193 Inexact Rounded\r | |
1285 | powx3007 power 0.8169297 3693.537 -> 4.475962E-325 Inexact Rounded\r | |
1286 | powx3008 power 0.2810153 659.9568 -> 1.533177E-364 Inexact Rounded\r | |
1287 | powx3009 power 4.617478 15.68308 -> 2.629748E+10 Inexact Rounded\r | |
1288 | powx3010 power 0.0296418 244.2302 -> 6.207949E-374 Inexact Rounded\r | |
1289 | powx3011 power 0.0036456 127.9987 -> 8.120891E-313 Inexact Rounded\r | |
1290 | powx3012 power 0.5012813 577.5418 -> 6.088802E-174 Inexact Rounded\r | |
1291 | powx3013 power 0.0033275 119.9800 -> 5.055049E-298 Inexact Rounded\r | |
1292 | powx3014 power 0.0037652 111.7092 -> 1.560351E-271 Inexact Rounded\r | |
1293 | powx3015 power 0.6463252 239.0568 -> 4.864564E-46 Inexact Rounded\r | |
1294 | powx3016 power 4.784378 475.0521 -> 8.964460E+322 Inexact Rounded\r | |
1295 | powx3017 power 4.610305 563.1791 -> 6.290298E+373 Inexact Rounded\r | |
1296 | powx3018 power 0.0175167 80.52208 -> 3.623472E-142 Inexact Rounded\r | |
1297 | powx3019 power 5.238307 356.7944 -> 4.011461E+256 Inexact Rounded\r | |
1298 | powx3020 power 0.0003527 96.26347 -> 4.377932E-333 Inexact Rounded\r | |
1299 | powx3021 power 0.0015155 136.0516 -> 2.57113E-384 Inexact Rounded Underflow Subnormal\r | |
1300 | powx3022 power 5.753573 273.2340 -> 4.373184E+207 Inexact Rounded\r | |
1301 | powx3023 power 7.778665 332.7917 -> 3.060640E+296 Inexact Rounded\r | |
1302 | powx3024 power 1.432479 2046.064 -> 2.325829E+319 Inexact Rounded\r | |
1303 | powx3025 power 5.610516 136.4563 -> 1.607502E+102 Inexact Rounded\r | |
1304 | powx3026 power 0.0050697 137.4513 -> 3.522315E-316 Inexact Rounded\r | |
1305 | powx3027 power 5.678737 85.16253 -> 1.713909E+64 Inexact Rounded\r | |
1306 | powx3028 power 0.0816167 236.1973 -> 9.228802E-258 Inexact Rounded\r | |
1307 | powx3029 power 0.2602805 562.0157 -> 2.944556E-329 Inexact Rounded\r | |
1308 | powx3030 power 0.0080936 24.25367 -> 1.839755E-51 Inexact Rounded\r | |
1309 | powx3031 power 4.092016 82.94603 -> 5.724948E+50 Inexact Rounded\r | |
1310 | powx3032 power 0.0078255 7.204184 -> 6.675342E-16 Inexact Rounded\r | |
1311 | powx3033 power 0.9917693 29846.44 -> 7.430177E-108 Inexact Rounded\r | |
1312 | powx3034 power 1.610380 301.2467 -> 2.170142E+62 Inexact Rounded\r | |
1313 | powx3035 power 0.0588236 212.1097 -> 1.023196E-261 Inexact Rounded\r | |
1314 | powx3036 power 2.498069 531.4647 -> 2.054561E+211 Inexact Rounded\r | |
1315 | powx3037 power 9.964342 326.5438 -> 1.089452E+326 Inexact Rounded\r | |
1316 | powx3038 power 0.0820626 268.8718 -> 1.107350E-292 Inexact Rounded\r | |
1317 | powx3039 power 6.176486 360.7779 -> 1.914449E+285 Inexact Rounded\r | |
1318 | powx3040 power 4.206363 16.17288 -> 1.231314E+10 Inexact Rounded\r | |
1319 | \r | |
1320 | -- P=34, within 0-999 -- negative arg2\r | |
1321 | Precision: 34\r | |
1322 | powx3701 power 376.0915270000109486633402827007902 -35.69822349904102131649243701958463 -> 1.165722831225506457828653413200143E-92 Inexact Rounded\r | |
1323 | powx3702 power 0.0000000503747440074613191665845314 -9.520308341497979093021813571450575 -> 3.000432478861883953977971226770410E+69 Inexact Rounded\r | |
1324 | powx3703 power 290.6858731495339778337953407938308 -118.5459048597789693292455673428367 -> 9.357969047113989238392527565200302E-293 Inexact Rounded\r | |
1325 | powx3704 power 4.598864607620052062908700928454182 -299.8323667698931125720218537483753 -> 2.069641269855413539579128114448478E-199 Inexact Rounded\r | |
1326 | powx3705 power 2.556952676986830645708349254938903 -425.1755373251941383147998924703593 -> 4.428799777833598654260883861514638E-174 Inexact Rounded\r | |
1327 | powx3706 power 0.0000005656198763404221986640610118 -32.83361380678301321230028730075315 -> 1.340270622401829145968477601029251E+205 Inexact Rounded\r | |
1328 | powx3707 power 012.4841978642452960750801410372125 -214.3734291828712962809866663321921 -> 9.319857751170603140459057535971202E-236 Inexact Rounded\r | |
1329 | powx3708 power 0.0000000056041586148066919174315551 -37.21129049213858341528033343116533 -> 1.118345010652454313186702341873169E+307 Inexact Rounded\r | |
1330 | powx3709 power 0.0694569218941833767199998804202152 -8.697509072368973932501239815677732 -> 11862866995.51026489032838174290271 Inexact Rounded\r | |
1331 | powx3710 power 6.380984024259450398729243522354144 -451.0635696889193561457985486366827 -> 8.800353109387322474809325670314330E-364 Inexact Rounded\r | |
1332 | powx3711 power 786.0264840756809048288007204917801 -43.09935384678762773057342161718540 -> 1.616324183365644133979585419925934E-125 Inexact Rounded\r | |
1333 | powx3712 power 96.07836427113204744101287948445130 -185.1414572546330024388914720271876 -> 8.586320815218383004023264980018610E-368 Inexact Rounded\r | |
1334 | powx3713 power 0.0000000002332189796855870659792406 -5.779561613164628076880609893753327 -> 4.678450775876385793618570483345066E+55 Inexact Rounded\r | |
1335 | powx3714 power 0.7254146672024602242369943237968857 -2115.512891397828615710130092245691 -> 8.539080958041689288202111403102495E+294 Inexact Rounded\r | |
1336 | powx3715 power 0.0017380543649702864796144008592137 -6.307668017761022788220578633538713 -> 256309141459075651.2275798017695017 Inexact Rounded\r | |
1337 | powx3716 power 05.29498758952276908267649116142379 -287.3233896734103442991981056134167 -> 1.039130027847489364009368608104291E-208 Inexact Rounded\r | |
1338 | powx3717 power 15.64403593865932622003462779104178 -110.5296633358063267478609032002475 -> 9.750540276026524527375125980296142E-133 Inexact Rounded\r | |
1339 | powx3718 power 89.69639006761571087634945077373508 -181.3209914139357665609268339422627 -> 8.335034232277762924539395632025281E-355 Inexact Rounded\r | |
1340 | powx3719 power 6.974087483731006359914914110135058 -174.6815625746710345173615508179842 -> 4.553072265122011176641590109568031E-148 Inexact Rounded\r | |
1341 | powx3720 power 0.0034393024010554821130553772681993 -93.60931598413919272595497100497364 -> 4.067468855817145539589988349449394E+230 Inexact Rounded\r | |
1342 | powx3721 power 63.32834072300379155053737260965633 -168.3926799435088324825751446957616 -> 4.207907835462640471617519501741094E-304 Inexact Rounded\r | |
1343 | powx3722 power 00.00216088174206276369011255907785 -70.12279562855442784757874508991013 -> 8.000657143378187029609343435067057E+186 Inexact Rounded\r | |
1344 | powx3723 power 934.5957982703545893572134393004375 -102.2287735565878252484031426026726 -> 2.073813769209257617246544424827240E-304 Inexact Rounded\r | |
1345 | powx3724 power 107.9116792558793921873995885441177 -44.11941092260869786313838181499158 -> 2.005476533631183268912552168759595E-90 Inexact Rounded\r | |
1346 | powx3725 power 0.0000000000188049827381428191769262 -19.32118917192242027966847501724073 -> 1.713174297100918857053338286389034E+207 Inexact Rounded\r | |
1347 | powx3726 power 614.9820907366248142166636259027728 -4.069913257030791586645250035698123 -> 4.462432572576935752713876293746717E-12 Inexact Rounded\r | |
1348 | powx3727 power 752.0655175769182096165651274049422 -22.59292060348797472013598378334370 -> 1.039881526694635205040192531504131E-65 Inexact Rounded\r | |
1349 | powx3728 power 72.20446632047659449616175456059013 -175.4705356401853924020842356605072 -> 7.529540175791582421966947814549028E-327 Inexact Rounded\r | |
1350 | powx3729 power 518.8346486600403405764055847937416 -65.87320268592761588756963215588232 -> 1.420189426992170936958891180073151E-179 Inexact Rounded\r | |
1351 | powx3730 power 3.457164372003960576453458502270716 -440.3201118177861273814529713443698 -> 6.176418595751201287186292664257369E-238 Inexact Rounded\r | |
1352 | powx3731 power 7.908352793344189720739467675503991 -298.6646112894719680394152664740255 -> 5.935857120229147638104675057695125E-269 Inexact Rounded\r | |
1353 | powx3732 power 0.0000004297399403788595027926075086 -22.66504617185071293588817501468339 -> 2.012270405520600820469665145636204E+144 Inexact Rounded\r | |
1354 | powx3733 power 0.0000008592124097322966354868716443 -9.913109586558030204789520190180906 -> 1.354958763843310237046818832755215E+60 Inexact Rounded\r | |
1355 | powx3734 power 161.4806080561258105880907470989925 -70.72907837434814261716311990271578 -> 6.632555003698945544941329872901929E-157 Inexact Rounded\r | |
1356 | powx3735 power 0.0000000090669568624173832705631918 -36.53759624613665940127058439106640 -> 7.161808401023414735428130112941559E+293 Inexact Rounded\r | |
1357 | powx3736 power 0.0000000000029440295978365709342752 -1.297354238738921988884421117731562 -> 911731060579291.7661267358872917380 Inexact Rounded\r | |
1358 | powx3737 power 21.37477220144832172175460425143692 -76.95949933640539226475686997477889 -> 4.481741242418091914011962399912885E-103 Inexact Rounded\r | |
1359 | powx3738 power 0.0000000000186657798201636342150903 -20.18296240350678245567049161730909 -> 3.483954007114900406906338526575672E+216 Inexact Rounded\r | |
1360 | powx3739 power 0.0006522464792960191985996959126792 -80.03762491483514679886504099194414 -> 9.266548513614215557228467517053035E+254 Inexact Rounded\r | |
1361 | powx3740 power 0.0000000032851343694200568966168055 -21.53462116926375512242403160008026 -> 4.873201679668455240861376213601189E+182 Inexact Rounded\r | |
1362 | \r | |
1363 | -- P=16, within 0-99 -- negative arg2\r | |
1364 | Precision: 16\r | |
1365 | powx3601 power 0.0000151338748474 -40.84655618364688 -> 7.628470824137755E+196 Inexact Rounded\r | |
1366 | powx3602 power 0.1542771848654862 -435.8830009466800 -> 6.389817177800744E+353 Inexact Rounded\r | |
1367 | powx3603 power 48.28477749367364 -218.5929209902050 -> 8.531049532576154E-369 Inexact Rounded\r | |
1368 | powx3604 power 7.960775891584911 -12.78113732182505 -> 3.053270889769488E-12 Inexact Rounded\r | |
1369 | powx3605 power 0.9430340651863058 -9010.470056913748 -> 3.313374654923807E+229 Inexact Rounded\r | |
1370 | powx3606 power 0.0000202661501602 -65.57915207383306 -> 5.997379176536464E+307 Inexact Rounded\r | |
1371 | powx3607 power 04.33007440798390 -232.0476834666588 -> 2.007827183010456E-148 Inexact Rounded\r | |
1372 | powx3608 power 0.0000141944643914 -11.32407921958717 -> 7.902934485074846E+54 Inexact Rounded\r | |
1373 | powx3609 power 0.0000021977758261 -53.53706138253307 -> 8.195631772317815E+302 Inexact Rounded\r | |
1374 | powx3610 power 39.51297655474188 -19.40370976012326 -> 1.040699608072659E-31 Inexact Rounded\r | |
1375 | powx3611 power 38.71210232488775 -66.58341618227921 -> 1.886855066146495E-106 Inexact Rounded\r | |
1376 | powx3612 power 0.0000804235229062 -6.715207948992859 -> 3.134757864389333E+27 Inexact Rounded\r | |
1377 | powx3613 power 0.0000073547092399 -11.27725685719934 -> 7.781428390953695E+57 Inexact Rounded\r | |
1378 | powx3614 power 52.72181272599316 -186.1422311607435 -> 2.916601998744177E-321 Inexact Rounded\r | |
1379 | powx3615 power 0.0969519963083306 -280.8220862151369 -> 3.955906885970987E+284 Inexact Rounded\r | |
1380 | powx3616 power 94.07263302150081 -148.2031146071230 -> 3.361958990752490E-293 Inexact Rounded\r | |
1381 | powx3617 power 85.80286965053704 -90.21453695813759 -> 3.715602429645798E-175 Inexact Rounded\r | |
1382 | powx3618 power 03.52699858152259 -492.0414362539196 -> 4.507309220081092E-270 Inexact Rounded\r | |
1383 | powx3619 power 0.0508278086396068 -181.0871731572167 -> 2.034428013017949E+234 Inexact Rounded\r | |
1384 | powx3620 power 0.395576740303172 -915.5524507432392 -> 5.706585187437578E+368 Inexact Rounded\r | |
1385 | powx3621 power 38.06105826789202 -49.75913753435335 -> 2.273188991431738E-79 Inexact Rounded\r | |
1386 | powx3622 power 0.0003656748910646 -73.28988491310354 -> 7.768936940568763E+251 Inexact Rounded\r | |
1387 | powx3623 power 0.0000006373551809 -51.30825234200690 -> 7.697618167701985E+317 Inexact Rounded\r | |
1388 | powx3624 power 82.41729920673856 -35.73319631625699 -> 3.424042354585529E-69 Inexact Rounded\r | |
1389 | powx3625 power 0.7845821453127670 -971.4982028897663 -> 2.283415527661089E+102 Inexact Rounded\r | |
1390 | powx3626 power 4.840983673433497 -182.3730452370515 -> 1.220591407927770E-125 Inexact Rounded\r | |
1391 | powx3627 power 0.0000006137592139 -2.122139474431484 -> 15231217034839.29 Inexact Rounded\r | |
1392 | powx3628 power 0.0003657962862984 -35.97993782448099 -> 4.512701319250839E+123 Inexact Rounded\r | |
1393 | powx3629 power 40.93693004443150 -165.1362408792997 -> 6.044276411057239E-267 Inexact Rounded\r | |
1394 | powx3630 power 0.2941552583028898 -17.41046264945892 -> 1787833103.503346 Inexact Rounded\r | |
1395 | powx3631 power 63.99335135369977 -69.92417205168579 -> 5.099359804872509E-127 Inexact Rounded\r | |
1396 | powx3632 power 0.0000657924467388 -89.14497293588313 -> 6.145878266688521E+372 Inexact Rounded\r | |
1397 | powx3633 power 11.35071250339147 -323.3705865614542 -> 6.863626248766775E-342 Inexact Rounded\r | |
1398 | powx3634 power 23.88024718470895 -277.7117513329510 -> 2.006441422612815E-383 Inexact Rounded\r | |
1399 | powx3635 power 0.0000009111939914 -58.51782946929182 -> 2.954352883996773E+353 Inexact Rounded\r | |
1400 | powx3636 power 0.0000878179048782 -75.81060420238669 -> 3.306878455207585E+307 Inexact Rounded\r | |
1401 | powx3637 power 07.39190564273779 -287.5047307244636 -> 1.692080354659805E-250 Inexact Rounded\r | |
1402 | powx3638 power 0.0000298310819799 -1.844740377759355 -> 222874718.7238888 Inexact Rounded\r | |
1403 | powx3639 power 0.0000006412929384 -28.24850078229290 -> 8.737164230666529E+174 Inexact Rounded\r | |
1404 | powx3640 power 0.0000010202965998 -47.17573701956498 -> 4.392845306049341E+282 Inexact Rounded\r | |
1405 | \r | |
1406 | -- P=7, within 0-9 -- negative arg2\r | |
1407 | Precision: 7\r | |
1408 | powx3501 power 0.326324 -71.96509 -> 1.000673E+35 Inexact Rounded\r | |
1409 | powx3502 power 0.0017635 -0.7186967 -> 95.28419 Inexact Rounded\r | |
1410 | powx3503 power 8.564155 -253.0899 -> 8.850512E-237 Inexact Rounded\r | |
1411 | powx3504 power 8.987272 -2.155789 -> 0.008793859 Inexact Rounded\r | |
1412 | powx3505 power 9.604856 -139.9630 -> 3.073492E-138 Inexact Rounded\r | |
1413 | powx3506 power 0.8472919 -2539.085 -> 5.372686E+182 Inexact Rounded\r | |
1414 | powx3507 power 5.312329 -60.32965 -> 1.753121E-44 Inexact Rounded\r | |
1415 | powx3508 power 0.0338294 -100.5440 -> 7.423939E+147 Inexact Rounded\r | |
1416 | powx3509 power 0.0017777 -130.8583 -> 7.565629E+359 Inexact Rounded\r | |
1417 | powx3510 power 8.016154 -405.5689 -> 2.395977E-367 Inexact Rounded\r | |
1418 | powx3511 power 5.016570 -327.8906 -> 2.203784E-230 Inexact Rounded\r | |
1419 | powx3512 power 0.8161743 -744.5276 -> 4.786899E+65 Inexact Rounded\r | |
1420 | powx3513 power 0.0666343 -164.7320 -> 5.951240E+193 Inexact Rounded\r | |
1421 | powx3514 power 0.0803966 -202.2666 -> 2.715512E+221 Inexact Rounded\r | |
1422 | powx3515 power 0.0014752 -12.55547 -> 3.518905E+35 Inexact Rounded\r | |
1423 | powx3516 power 9.737565 -14.69615 -> 2.975672E-15 Inexact Rounded\r | |
1424 | powx3517 power 0.6634172 -152.7308 -> 1.654458E+27 Inexact Rounded\r | |
1425 | powx3518 power 0.0009337 -33.32939 -> 9.575039E+100 Inexact Rounded\r | |
1426 | powx3519 power 8.679922 -224.4194 -> 2.392446E-211 Inexact Rounded\r | |
1427 | powx3520 power 7.390494 -161.9483 -> 2.088375E-141 Inexact Rounded\r | |
1428 | powx3521 power 0.4631489 -417.1673 -> 2.821106E+139 Inexact Rounded\r | |
1429 | powx3522 power 0.0095471 -7.677458 -> 3.231855E+15 Inexact Rounded\r | |
1430 | powx3523 power 6.566339 -176.1867 -> 9.965633E-145 Inexact Rounded\r | |
1431 | powx3524 power 2.696128 -26.15501 -> 5.419731E-12 Inexact Rounded\r | |
1432 | powx3525 power 0.4464366 -852.1893 -> 2.957725E+298 Inexact Rounded\r | |
1433 | powx3526 power 0.4772006 -921.4111 -> 1.118105E+296 Inexact Rounded\r | |
1434 | powx3527 power 8.923696 -359.2211 -> 3.501573E-342 Inexact Rounded\r | |
1435 | powx3528 power 0.0018008 -66.91252 -> 4.402718E+183 Inexact Rounded\r | |
1436 | powx3529 power 0.0811964 -92.83278 -> 1.701111E+101 Inexact Rounded\r | |
1437 | powx3530 power 0.0711219 -58.94347 -> 4.644148E+67 Inexact Rounded\r | |
1438 | powx3531 power 7.958121 -50.66123 -> 2.311161E-46 Inexact Rounded\r | |
1439 | powx3532 power 6.106466 -81.83610 -> 4.943285E-65 Inexact Rounded\r | |
1440 | powx3533 power 4.557634 -129.5268 -> 4.737917E-86 Inexact Rounded\r | |
1441 | powx3534 power 0.0027348 -9.180135 -> 3.383524E+23 Inexact Rounded\r | |
1442 | powx3535 power 0.0083924 -46.24016 -> 9.996212E+95 Inexact Rounded\r | |
1443 | powx3536 power 2.138523 -47.25897 -> 2.507009E-16 Inexact Rounded\r | |
1444 | powx3537 power 1.626728 -1573.830 -> 2.668117E-333 Inexact Rounded\r | |
1445 | powx3538 power 0.082615 -164.5842 -> 1.717882E+178 Inexact Rounded\r | |
1446 | powx3539 power 7.636003 -363.6763 -> 8.366174E-322 Inexact Rounded\r | |
1447 | powx3540 power 0.0021481 -138.0065 -> 1.562505E+368 Inexact Rounded\r | |
1448 | \r | |
1449 | \r | |
1450 | -- Invalid operations due to restrictions\r | |
1451 | -- [next two probably skipped by most test harnesses]\r | |
1452 | precision: 100000000\r | |
1453 | powx4001 power 1 1.1 -> NaN Invalid_context\r | |
1454 | precision: 99999999\r | |
1455 | powx4002 power 1 1.1 -> NaN Invalid_context\r | |
1456 | \r | |
1457 | precision: 9\r | |
1458 | maxExponent: 1000000\r | |
1459 | minExponent: -999999\r | |
1460 | powx4003 power 1 1.1 -> NaN Invalid_context\r | |
1461 | maxExponent: 999999\r | |
1462 | minExponent: -999999\r | |
1463 | powx4004 power 1 1.1 -> 1.00000000 Inexact Rounded\r | |
1464 | maxExponent: 999999\r | |
1465 | minExponent: -1000000\r | |
1466 | powx4005 power 1 1.1 -> NaN Invalid_context\r | |
1467 | maxExponent: 999999\r | |
1468 | minExponent: -999998\r | |
1469 | powx4006 power 1 1.1 -> 1.00000000 Inexact Rounded\r | |
1470 | \r | |
1471 | -- operand range violations\r | |
1472 | powx4007 power 1 1.1E+999999 -> 1\r | |
1473 | powx4008 power 1 1.1E+1000000 -> NaN Invalid_operation\r | |
1474 | powx4009 power 1.1E+999999 1.1 -> Infinity Overflow Inexact Rounded\r | |
1475 | powx4010 power 1.1E+1000000 1.1 -> NaN Invalid_operation\r | |
1476 | powx4011 power 1 1.1E-1999997 -> 1.00000000 Inexact Rounded\r | |
1477 | powx4012 power 1 1.1E-1999998 -> NaN Invalid_operation\r | |
1478 | powx4013 power 1.1E-1999997 1.1 -> 0E-1000006 Underflow Inexact Rounded Clamped Subnormal\r | |
1479 | powx4014 power 1.1E-1999998 1.1 -> NaN Invalid_operation\r | |
1480 | \r | |
1481 | -- rounding modes -- power is sensitive\r | |
1482 | precision: 7\r | |
1483 | maxExponent: 99\r | |
1484 | minExponent: -99\r | |
1485 | \r | |
1486 | -- 0.7 ** 3.3 => 0.30819354053418943822\r | |
1487 | -- 0.7 ** 3.4 => 0.29739477638272533854\r | |
1488 | -- -1.2 ** 17 => -22.18611106740436992\r | |
1489 | -- -1.3 ** 17 => -86.50415919381337933\r | |
1490 | -- 0.5 ** 11 => 0.00048828125\r | |
1491 | -- 3.15 ** 3 => 31.255875\r | |
1492 | \r | |
1493 | rounding: up\r | |
1494 | powx4100 power 0.7 3.3 -> 0.3081936 Inexact Rounded\r | |
1495 | powx4101 power 0.7 3.4 -> 0.2973948 Inexact Rounded\r | |
1496 | powx4102 power -1.2 17 -> -22.18612 Inexact Rounded\r | |
1497 | powx4103 power -1.3 17 -> -86.50416 Inexact Rounded\r | |
1498 | powx4104 power 17 81.27115 -> 9.999974E+99 Inexact Rounded\r | |
1499 | powx4105 power 17 81.27116 -> Infinity Overflow Inexact Rounded\r | |
1500 | \r | |
1501 | rounding: down\r | |
1502 | powx4120 power 0.7 3.3 -> 0.3081935 Inexact Rounded\r | |
1503 | powx4121 power 0.7 3.4 -> 0.2973947 Inexact Rounded\r | |
1504 | powx4122 power -1.2 17 -> -22.18611 Inexact Rounded\r | |
1505 | powx4123 power -1.3 17 -> -86.50415 Inexact Rounded\r | |
1506 | powx4124 power 17 81.27115 -> 9.999973E+99 Inexact Rounded\r | |
1507 | powx4125 power 17 81.27116 -> 9.999999E+99 Overflow Inexact Rounded\r | |
1508 | \r | |
1509 | rounding: floor\r | |
1510 | powx4140 power 0.7 3.3 -> 0.3081935 Inexact Rounded\r | |
1511 | powx4141 power 0.7 3.4 -> 0.2973947 Inexact Rounded\r | |
1512 | powx4142 power -1.2 17 -> -22.18612 Inexact Rounded\r | |
1513 | powx4143 power -1.3 17 -> -86.50416 Inexact Rounded\r | |
1514 | powx4144 power 17 81.27115 -> 9.999973E+99 Inexact Rounded\r | |
1515 | powx4145 power 17 81.27116 -> 9.999999E+99 Overflow Inexact Rounded\r | |
1516 | \r | |
1517 | rounding: ceiling\r | |
1518 | powx4160 power 0.7 3.3 -> 0.3081936 Inexact Rounded\r | |
1519 | powx4161 power 0.7 3.4 -> 0.2973948 Inexact Rounded\r | |
1520 | powx4162 power -1.2 17 -> -22.18611 Inexact Rounded\r | |
1521 | powx4163 power -1.3 17 -> -86.50415 Inexact Rounded\r | |
1522 | powx4164 power 17 81.27115 -> 9.999974E+99 Inexact Rounded\r | |
1523 | powx4165 power 17 81.27116 -> Infinity Overflow Inexact Rounded\r | |
1524 | \r | |
1525 | rounding: half_up\r | |
1526 | powx4180 power 0.7 3.3 -> 0.3081935 Inexact Rounded\r | |
1527 | powx4181 power 0.7 3.4 -> 0.2973948 Inexact Rounded\r | |
1528 | powx4182 power -1.2 17 -> -22.18611 Inexact Rounded\r | |
1529 | powx4183 power -1.3 17 -> -86.50416 Inexact Rounded\r | |
1530 | powx4184 power 0.5 11 -> 0.0004882813 Inexact Rounded\r | |
1531 | powx4185 power 3.15 3 -> 31.25588 Inexact Rounded\r | |
1532 | powx4186 power 17 81.27115 -> 9.999974E+99 Inexact Rounded\r | |
1533 | powx4187 power 17 81.27116 -> Infinity Overflow Inexact Rounded\r | |
1534 | \r | |
1535 | rounding: half_even\r | |
1536 | powx4200 power 0.7 3.3 -> 0.3081935 Inexact Rounded\r | |
1537 | powx4201 power 0.7 3.4 -> 0.2973948 Inexact Rounded\r | |
1538 | powx4202 power -1.2 17 -> -22.18611 Inexact Rounded\r | |
1539 | powx4203 power -1.3 17 -> -86.50416 Inexact Rounded\r | |
1540 | powx4204 power 0.5 11 -> 0.0004882812 Inexact Rounded\r | |
1541 | powx4205 power 3.15 3 -> 31.25588 Inexact Rounded\r | |
1542 | powx4206 power 17 81.27115 -> 9.999974E+99 Inexact Rounded\r | |
1543 | powx4207 power 17 81.27116 -> Infinity Overflow Inexact Rounded\r | |
1544 | \r | |
1545 | rounding: half_down\r | |
1546 | powx4220 power 0.7 3.3 -> 0.3081935 Inexact Rounded\r | |
1547 | powx4221 power 0.7 3.4 -> 0.2973948 Inexact Rounded\r | |
1548 | powx4222 power -1.2 17 -> -22.18611 Inexact Rounded\r | |
1549 | powx4223 power -1.3 17 -> -86.50416 Inexact Rounded\r | |
1550 | powx4224 power 0.5 11 -> 0.0004882812 Inexact Rounded\r | |
1551 | powx4225 power 3.15 3 -> 31.25587 Inexact Rounded\r | |
1552 | powx4226 power -3.15 3 -> -31.25587 Inexact Rounded\r | |
1553 | powx4227 power 17 81.27115 -> 9.999974E+99 Inexact Rounded\r | |
1554 | powx4228 power 17 81.27116 -> Infinity Overflow Inexact Rounded\r | |
1555 | \r | |
1556 | \r | |
1557 | -- more rounding tests as per Ilan Nehama's suggestions & analysis\r | |
1558 | -- these are likely to show > 0.5 ulp error for very small powers\r | |
1559 | precision: 7\r | |
1560 | maxExponent: 96\r | |
1561 | minExponent: -95\r | |
1562 | \r | |
1563 | -- For x=nextfp(1)=1.00..001 (where the number of 0s is precision-2)\r | |
1564 | -- power(x,y)=x when the rounding is up (e.g., toward_pos_inf or\r | |
1565 | -- ceil) for any y in (0,1].\r | |
1566 | rounding: ceiling\r | |
1567 | powx4301 power 1.000001 0 -> 1\r | |
1568 | -- The next test should be skipped for decNumber\r | |
1569 | powx4302 power 1.000001 1e-101 -> 1.000001 Inexact Rounded\r | |
1570 | -- The next test should be skipped for decNumber\r | |
1571 | powx4303 power 1.000001 1e-95 -> 1.000001 Inexact Rounded\r | |
1572 | powx4304 power 1.000001 1e-10 -> 1.000001 Inexact Rounded\r | |
1573 | powx4305 power 1.000001 0.1 -> 1.000001 Inexact Rounded\r | |
1574 | powx4306 power 1.000001 0.1234567 -> 1.000001 Inexact Rounded\r | |
1575 | powx4307 power 1.000001 0.7 -> 1.000001 Inexact Rounded\r | |
1576 | powx4308 power 1.000001 0.9999999 -> 1.000001 Inexact Rounded\r | |
1577 | powx4309 power 1.000001 1.000000 -> 1.000001\r | |
1578 | -- power(x,y)=1 when the rounding is down (e.g. toward_zero or\r | |
1579 | -- floor) for any y in [0,1).\r | |
1580 | rounding: floor\r | |
1581 | powx4321 power 1.000001 0 -> 1\r | |
1582 | powx4322 power 1.000001 1e-101 -> 1.000000 Inexact Rounded\r | |
1583 | powx4323 power 1.000001 1e-95 -> 1.000000 Inexact Rounded\r | |
1584 | powx4324 power 1.000001 1e-10 -> 1.000000 Inexact Rounded\r | |
1585 | powx4325 power 1.000001 0.1 -> 1.000000 Inexact Rounded\r | |
1586 | powx4326 power 1.000001 0.1234567 -> 1.000000 Inexact Rounded\r | |
1587 | powx4327 power 1.000001 0.7 -> 1.000000 Inexact Rounded\r | |
1588 | powx4328 power 1.000001 0.9999999 -> 1.000000 Inexact Rounded\r | |
1589 | powx4329 power 1.000001 1.000000 -> 1.000001\r | |
1590 | \r | |
1591 | -- For x=prevfp(1)=0.99..99 (where the number of 9s is precision)\r | |
1592 | -- power(x,y)=x when the rounding is down for any y in (0,1].\r | |
1593 | rounding: floor\r | |
1594 | powx4341 power 0.9999999 0 -> 1\r | |
1595 | -- The next test should be skipped for decNumber\r | |
1596 | powx4342 power 0.9999999 1e-101 -> 0.9999999 Inexact Rounded\r | |
1597 | -- The next test should be skipped for decNumber\r | |
1598 | powx4343 power 0.9999999 1e-95 -> 0.9999999 Inexact Rounded\r | |
1599 | powx4344 power 0.9999999 1e-10 -> 0.9999999 Inexact Rounded\r | |
1600 | powx4345 power 0.9999999 0.1 -> 0.9999999 Inexact Rounded\r | |
1601 | powx4346 power 0.9999999 0.1234567 -> 0.9999999 Inexact Rounded\r | |
1602 | powx4347 power 0.9999999 0.7 -> 0.9999999 Inexact Rounded\r | |
1603 | powx4348 power 0.9999999 0.9999999 -> 0.9999999 Inexact Rounded\r | |
1604 | powx4349 power 0.9999999 1.000000 -> 0.9999999\r | |
1605 | -- power(x,y)=1 when the rounding is up for any y in (0,1].\r | |
1606 | rounding: ceiling\r | |
1607 | powx4361 power 0.9999999 0 -> 1\r | |
1608 | powx4362 power 0.9999999 1e-101 -> 1.000000 Inexact Rounded\r | |
1609 | powx4363 power 0.9999999 1e-95 -> 1.000000 Inexact Rounded\r | |
1610 | powx4364 power 0.9999999 1e-10 -> 1.000000 Inexact Rounded\r | |
1611 | powx4365 power 0.9999999 0.1 -> 1.000000 Inexact Rounded\r | |
1612 | powx4366 power 0.9999999 0.1234567 -> 1.000000 Inexact Rounded\r | |
1613 | powx4367 power 0.9999999 0.7 -> 1.000000 Inexact Rounded\r | |
1614 | powx4368 power 0.9999999 0.9999999 -> 1.000000 Inexact Rounded\r | |
1615 | powx4369 power 0.9999999 1.000000 -> 0.9999999\r | |
1616 | \r | |
1617 | -- For x=nextfp(0)\r | |
1618 | -- power(x,y)=0 when the rounding is down for any y larger than 1.\r | |
1619 | rounding: floor\r | |
1620 | powx4382 power 1e-101 0 -> 1\r | |
1621 | powx4383 power 1e-101 0.9999999 -> 1E-101 Underflow Subnormal Inexact Rounded\r | |
1622 | powx4384 power 1e-101 1.000000 -> 1E-101 Subnormal\r | |
1623 | powx4385 power 1e-101 1.000001 -> 0E-101 Underflow Subnormal Inexact Rounded Clamped\r | |
1624 | powx4386 power 1e-101 2.000000 -> 0E-101 Underflow Subnormal Inexact Rounded Clamped\r |