[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-29 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r77116 (trunk), r77117 (py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch (against trunk). -- keywords: +patch Added file: http://bugs.python.org/file15670/issue7575.patch ___ Python tracker ___

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for that. I'd call that pretty broken then: the result of expm1(709.78) is effectively wrong by 24.4 trillion ulps (perhaps that should be 24.4 teraulps?). I guess someone just coded a hard cutoff value somewhere between 709.7 and 709.78. But since

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Salman Haq
Salman Haq added the comment: Only the argument with one decimal place precision does NOT overflow. Python 2.7a1+ (trunk:76872, Dec 21 2009, 09:54:29) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from math im

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson
Mark Dickinson added the comment: Salman Haq, could you find out roughly where expm1 starts overflowing on your machine? E.g., do all of the following overflow for you? >>> from math import expm1 >>> expm1(709.78271289338397) 1.7976931348622732e+308 >>> expm1(709.782712893) 1.797693134172102e

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson
Mark Dickinson added the comment: This seems to be specific to OS X/Intel: I'm not seeing any failure on my ancient iBook G4 (OS X 10.4.11). -- ___ Python tracker ___ _

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson
Mark Dickinson added the comment: Salman Haq also reported (on IRC) that the configure output shows: checking for expm1... yes so this appears to be a problem with the platform's implementation of expm1, rather than with Python's expm1 code (which is only used when the platform version isn't

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson nosy: +mark.dickinson priority: -> normal type: performance -> behavior ___ Python tracker ___ ___

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Salman Haq
New submission from Salman Haq : See output of regrtest below. It was run on an Intel Mac OS X 10.4 A similar failure is observed on the py3k branch. ./python.exe Lib/test/regrtest.py -v test_math test_math testAcos (test.test_math.MathTests) ... ok testAcosh (test.test_math.MathTests) ... ok