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.11:49:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343476151.8.0.61090102746.issue15477@psf.upfronthosting.co.za>
In-reply-to
Content
Judging by previous reports of this type, it's probably either a bug in the platform math library or a compiler optimization bug (or possibly a combination of the two: one previous OS X bug involved calls to sin / cos being 'optimized' to a badly implemented single call to cexp).  I assume the failure still happens in debug mode?  If so, a math library bug seems more likely.

Are there any math module failures?

It's not immediately obvious what the bug is, since the cmath module functions are not just simple wrappers around library functions.  In this case it looks like either atan2 or log1p is doing the wrong thing with signs of zeros.

What do math.log1p(0.0) and math.log1p(-0.0) give?  (Answers *should* be 0.0 and -0.0 respectively.)
History
Date User Action Args
2012-07-28 11:49:11mark.dickinsonsetrecipients: + mark.dickinson, ned.deily
2012-07-28 11:49:11mark.dickinsonsetmessageid: <1343476151.8.0.61090102746.issue15477@psf.upfronthosting.co.za>
2012-07-28 11:49:11mark.dickinsonlinkissue15477 messages
2012-07-28 11:49:10mark.dickinsoncreate