Challenge: find the first value where two functions differ
Steve D'Aprano
steve+python at pearwood.info
Fri Aug 4 14:36:20 EDT 2017
On Sat, 5 Aug 2017 02:00 am, Ian Kelly wrote:
> On Fri, Aug 4, 2017 at 9:47 AM, Chris Angelico <rosuav at gmail.com> wrote:
>> On Sat, Aug 5, 2017 at 1:44 AM, Chris Angelico <rosuav at gmail.com> wrote:
>>> That gave me this result almost instantaneously:
>>>
>>> 4503599761588224
>>>
>>> which has been rounded up instead of down. I don't know if that counts
>>> as sufficiently wrong?
[...]
> Your example demonstrates that the "2**53 < M" assumption was wrong,
> which is interesting.
It sure is.
You're right, of course, I hadn't noticed that Chris' M was approximately half
2**53.
--
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.
More information about the Python-list
mailing list