regression/power of two/2^-50 to 2^13

About this case

Powers of two, where the gap to the next double down is half the gap up.

Source
Focused regression
Input
64 values · 512 B · raw bytes
Ties
1 value has two equally close shortest decimals
Output
977 B
Archive
000239_must_render_exactly/input

Input

Each value is 8 bytes, little-endian. Its bits are shown most significant first, as RFC 8785 Appendix B writes them, so 3ff0000000000000 is 1.

# Bits (hex) Expected
1 3cd0000000000000 8.881784197001252e-16
2 3ce0000000000000 1.7763568394002505e-15
3 3cf0000000000000 3.552713678800501e-15
4 3d00000000000000 7.105427357601002e-15
5 3d10000000000000 1.4210854715202004e-14
6 3d20000000000000 2.842170943040401e-14
7 3d30000000000000 5.684341886080802e-14
8 3d40000000000000 1.1368683772161603e-13
9 3d50000000000000 2.2737367544323206e-13
10 3d60000000000000 4.547473508864641e-13
11 3d70000000000000 9.094947017729282e-13
12 3d80000000000000 1.8189894035458565e-12
13 3d90000000000000 3.637978807091713e-12
14 3da0000000000000 7.275957614183426e-12
15 3db0000000000000 1.4551915228366852e-11
16 3dc0000000000000 2.9103830456733704e-11
17 3dd0000000000000 5.820766091346741e-11
18 3de0000000000000 1.1641532182693481e-10
19 3df0000000000000 2.3283064365386963e-10
20 3e00000000000000 4.656612873077393e-10
21 3e10000000000000 9.313225746154785e-10
22 3e20000000000000 1.862645149230957e-9
23 3e30000000000000 3.725290298461914e-9
24 3e40000000000000 7.450580596923828e-9
25 3e50000000000000 1.4901161193847656e-8
26 3e60000000000000 2.9802322387695312e-8
27 3e70000000000000 5.960464477539063e-8
28 3e80000000000000 1.1920928955078125e-7
29 3e90000000000000 2.384185791015625e-7
30 3ea0000000000000 4.76837158203125e-7
31 3eb0000000000000 9.5367431640625e-7
32 3ec0000000000000 0.0000019073486328125
33 3ed0000000000000 0.000003814697265625
34 3ee0000000000000 0.00000762939453125
35 3ef0000000000000 0.0000152587890625
36 3f00000000000000 0.000030517578125
37 3f10000000000000 0.00006103515625
38 3f20000000000000 0.0001220703125
39 3f30000000000000 0.000244140625
40 3f40000000000000 0.00048828125
41 3f50000000000000 0.0009765625
42 3f60000000000000 0.001953125
43 3f70000000000000 0.00390625
44 3f80000000000000 0.0078125
45 3f90000000000000 0.015625
46 3fa0000000000000 0.03125
47 3fb0000000000000 0.0625
48 3fc0000000000000 0.125
49 3fd0000000000000 0.25
50 3fe0000000000000 0.5
51 3ff0000000000000 1
52 4000000000000000 2
53 4010000000000000 4
54 4020000000000000 8
55 4030000000000000 16
56 4040000000000000 32
57 4050000000000000 64
58 4060000000000000 128
59 4070000000000000 256
60 4080000000000000 512
61 4090000000000000 1024
62 40a0000000000000 2048
63 40b0000000000000 4096
64 40c0000000000000 8192

Expected output

The output must match these bytes exactly.

8.881784197001252e-16
1.7763568394002505e-15
3.552713678800501e-15
7.105427357601002e-15
1.4210854715202004e-14
2.842170943040401e-14
5.684341886080802e-14
1.1368683772161603e-13
2.2737367544323206e-13
4.547473508864641e-13
9.094947017729282e-13
1.8189894035458565e-12
3.637978807091713e-12
7.275957614183426e-12
1.4551915228366852e-11
2.9103830456733704e-11
5.820766091346741e-11
1.1641532182693481e-10
2.3283064365386963e-10
4.656612873077393e-10
9.313225746154785e-10
1.862645149230957e-9
3.725290298461914e-9
7.450580596923828e-9
1.4901161193847656e-8
2.9802322387695312e-8
5.960464477539063e-8
1.1920928955078125e-7
2.384185791015625e-7
4.76837158203125e-7
9.5367431640625e-7
0.0000019073486328125
0.000003814697265625
0.00000762939453125
0.0000152587890625
0.000030517578125
0.00006103515625
0.0001220703125
0.000244140625
0.00048828125
0.0009765625
0.001953125
0.00390625
0.0078125
0.015625
0.03125
0.0625
0.125
0.25
0.5
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192