Mark Dickinson <dicki...@gmail.com> added the comment:

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.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15477>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to