Mark Dickinson added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18513> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com