Message188034
| Author |
squeakbat |
| Recipients |
squeakbat |
| Date |
2013年04月29日.03:57:09 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1367207830.24.0.11213032389.issue17865@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|