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, rhettinger
Date 2013-07-20.16:45:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374338733.94.0.588648920846.issue18513@psf.upfronthosting.co.za>
In-reply-to
Content
I can't reproduce this here on OS 10.6 (I don't have access to anything later), but I think I can guess what's happening:  I suspect that gcc 4.8 is optimizing the pair of 'cos' and 'sin' calls into a single call to 'cexp'.  And then the OS X library implementation of _cexp has buggy behaviour with respect to signs of zeros (this last part is something I've witnessed before, but I forget which version of OS X it was on).

It's easy to work around, by adding a special case for zeros in cmath_rect.  It's a bit annoying to have to do so, though.
History
Date User Action Args
2013-07-20 16:45:33mark.dickinsonsetrecipients: + mark.dickinson, rhettinger
2013-07-20 16:45:33mark.dickinsonsetmessageid: <1374338733.94.0.588648920846.issue18513@psf.upfronthosting.co.za>
2013-07-20 16:45:33mark.dickinsonlinkissue18513 messages
2013-07-20 16:45:33mark.dickinsoncreate