Message188034
Here's an example that uses only math library functions and float literals, presumably with a simpler code path:
Python 2.7.3 (default, Jan 2 2013, 16:38:11)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.exp(-2.0)
0.1353352832366127
>>> math.ceil(1.0)
1.0
>>> math.exp(-2.0)
0.23902241864785234
By the way, the equivalent C program (using exp() and ceil()) on the same platform behaves correctly, so it's not an obvious libc or fpu problem. |
|
Date |
User |
Action |
Args |
2013-04-29 03:57:10 | squeakbat | set | recipients:
+ squeakbat |
2013-04-29 03:57:10 | squeakbat | set | messageid: <1367207830.24.0.11213032389.issue17865@psf.upfronthosting.co.za> |
2013-04-29 03:57:10 | squeakbat | link | issue17865 messages |
2013-04-29 03:57:09 | squeakbat | create | |
|