➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 tim.peters
收信人 mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
日期 2020-08-19.05:00:59
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1597813259.64.0.857820021347.issue41513@roundup.psfhosted.org>
In-reply-to
内容
> That's about 0.5000000000026 ulp too small - shocking ;-)

Actually, that's an illusion due to the limited precision of Decimal.  The rounded result is exactly 1/2 ulp away from the infinitely precise result - it's a nearest/even tie case.

To make analysis easy, just note that the mathematical hypot(*([x] * 9)) is exactly 3*x.  For x = 16 + ulp(16), 3*x moves to a higher binade and has two trailing one bits.  The last has to be rounded away, rounding up to leave the last retained bit even.  Any source of error, no matter how tiny, can be enough so that doesn't happen.
历史
日期 用户 动作 参数
2020-08-19 05:00:59tim.peters修改recipients: + tim.peters, rhettinger, mark.dickinson, serhiy.storchaka
2020-08-19 05:00:59tim.peters修改messageid: <1597813259.64.0.857820021347.issue41513@roundup.psfhosted.org>
2020-08-19 05:00:59tim.peters链接issue41513 messages
2020-08-19 05:00:59tim.peters创建