Message273874
Ah, cunning: I can make sense of it in hex.
>>> hex(to_ulps(expected))
'0x3ff0000000000000'
>>> hex(to_ulps(got))
'0x3feffffffffffffc'
>>> hex( to_ulps(got) - to_ulps(expected) )
'-0x4'
... and what you've done with ulp then follows.
In my version a format like "{:d} ulps" was a bad idea when the error was a gross one, but your to_ulps is only piece-wise linear -- large differences are compressed.
I'm pleased my work has mostly survived: here's hoping the house build-bots agree. erfc() is perhaps the last worry, but math & cmath pass on my machine. |
|
Date |
User |
Action |
Args |
2016-08-29 17:54:17 | jeff.allen | set | recipients:
+ jeff.allen, lemburg, mark.dickinson, eric.smith, christian.heimes, ned.deily, stutzbach, python-dev, serhiy.storchaka, koobs |
2016-08-29 17:54:17 | jeff.allen | set | messageid: <1472493257.0.0.351330948211.issue26040@psf.upfronthosting.co.za> |
2016-08-29 17:54:16 | jeff.allen | link | issue26040 messages |
2016-08-29 17:54:16 | jeff.allen | create | |
|