Message375634
Here's a "correct rounding" fail for the add_on approach:
xs = [16.000000000000004] * 9
decimal result = 48.00000000000001065814103642
which rounds to float 48.000000000000014
add_on result: 48.00000000000001
That's about 0.5000000000026 ulp too small - shocking ;-)
The fsum approach got this one right, but has similar failures on other inputs of the same form; i.e.,
[i + ulp(i)] * 9
for various integers `i`. |
|
| Date |
User |
Action |
Args |
| 2020-08-19 03:46:08 | tim.peters | set | recipients:
+ tim.peters, rhettinger, mark.dickinson, serhiy.storchaka |
| 2020-08-19 03:46:08 | tim.peters | set | messageid: <[email protected]> |
| 2020-08-19 03:46:08 | tim.peters | link | issue41513 messages |
| 2020-08-19 03:46:08 | tim.peters | create | |
|