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 docs@python, mark.dickinson, rhettinger, tim.peters
Date 2019-07-01.07:00:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561964432.03.0.849235126567.issue37454@roundup.psfhosted.org>
In-reply-to
Content
> however, for x < 0.0 it is always worse

That's quite surprising. Which platform? And can you give some example inputs and outputs? With a good math library, I'd expect `log1p(x)` to almost always be at least as accurate as `log(1 + x)`, and substantially _more_ accurate for small x (say abs(x) < 1e-5). If that's not happening, we may want to substitute our own implementation for the system implementation on some platforms (in the same was as we did for lgamma, erf, and friends).
History
Date User Action Args
2019-07-01 07:00:32mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, rhettinger, docs@python
2019-07-01 07:00:32mark.dickinsonsetmessageid: <1561964432.03.0.849235126567.issue37454@roundup.psfhosted.org>
2019-07-01 07:00:32mark.dickinsonlinkissue37454 messages
2019-07-01 07:00:31mark.dickinsoncreate