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.

Author mark.dickinson
Recipients mark.dickinson
Date 2021-09-16.12:35:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631795738.33.0.493325129299.issue45218@roundup.psfhosted.org>
In-reply-to
Content
> and `log` base `math.e` is likely to be less accurate than plain natural log

Nope, that's nonsense, since the two-argument form simply divides by log(base), and while log(math.e) is mathematically not exactly 1 (its exact value, assuming IEEE 754 binary64, starts 0.9999999999999999468176229339410862948..., which is off from 1.0 by around 0.48 ulps), it's *just* close enough that with a well-behaved libm log implementation it's exactly 1.0 after rounding.

I still don't like the idea of math.e as a default value here, but I'd have to work harder to identify why it makes me uneasy.
History
Date User Action Args
2021-09-16 12:35:38mark.dickinsonsetrecipients: + mark.dickinson
2021-09-16 12:35:38mark.dickinsonsetmessageid: <1631795738.33.0.493325129299.issue45218@roundup.psfhosted.org>
2021-09-16 12:35:38mark.dickinsonlinkissue45218 messages
2021-09-16 12:35:38mark.dickinsoncreate