homepage

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, ned.deily
Date 2012年07月28日.22:17:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343513843.73.0.554609064696.issue15477@psf.upfronthosting.co.za>
In-reply-to
Content
>>> math.log1p(0.0)
0.0
>>> math.log1p(-0.0)
0.0
Ah, that would do it, then. It looks as though the system's log1p function is buggy, in the sense that it doesn't follow C99 Annex F (F.9.3.9). It also doesn't agree with what 'man log1p' says on my OS X 10.6 Macbook: under 'SPECIAL VALUES', it says: 'log1p(+-0) returns +-0.'
I'm puzzled about one thing, though: there's a test for this problem in the configure script, and LOG1P_DROPS_ZERO_SIGN should be defined in this case---in that case, the two testAtanSign and testAtanhSign tests are skipped. So it looks as though LOG1P_DROPS_ZERO_SIGN isn't being defined on this machine; I'm not sure why---there may be a compiler optimization kicking in in the configure test. (Is this clang or gcc, BTW?)
So definitely worth a bug report, I'd say, though perhaps it's too much to hope for a fix within the lifetime of 10.8.
History
Date User Action Args
2012年07月28日 22:17:23mark.dickinsonsetrecipients: + mark.dickinson, ned.deily
2012年07月28日 22:17:23mark.dickinsonsetmessageid: <1343513843.73.0.554609064696.issue15477@psf.upfronthosting.co.za>
2012年07月28日 22:17:23mark.dickinsonlinkissue15477 messages
2012年07月28日 22:17:22mark.dickinsoncreate

AltStyle によって変換されたページ (->オリジナル) /