➜

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-15.05:03:13
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1597467793.66.0.844122798394.issue41513@roundup.psfhosted.org>
In-reply-to
内容
Cute: for any number of arguments, try computing h**2, then one at a time subtract a**2 (an argument squared) in descending order of magnitude.  Call that (h**2 - a1**2 - a2**2 - ...) x.

Then

    h -= x/(2*h)

That should reduce errors too, although not nearly so effectively, since it's a cheap way of estimating (& correcting for) the discrepancy between sum(a**2) and h**2.

Note that "descending order" is important: it's trying to cancel as many leading bits as possible as early as possible, so that lower-order bits come into play.

Then again ... why bother? ;-)
历史
日期 用户 动作 参数
2020-08-15 05:03:13tim.peters修改recipients: + tim.peters, rhettinger, mark.dickinson, serhiy.storchaka
2020-08-15 05:03:13tim.peters修改messageid: <1597467793.66.0.844122798394.issue41513@roundup.psfhosted.org>
2020-08-15 05:03:13tim.peters链接issue41513 messages
2020-08-15 05:03:13tim.peters创建