Mark Dickinson added the comment:

Hmm:  it's not an obvious Python bug, either:  both math.exp and math.ceil are 
simple wrappers around the libm functions, so there's little room for things to 
go wrong between Python and the OS.

Are you in a position to compile Python from source on your platform?

What was the equivalent C program you tried?  What's the compiler on this 
platform?  Note that gcc (I believe) evaluates math function calls for 
constants at compile time (using MPFR), rather than run time, which would mean 
if your C program simply does "exp(-2.0);" then it's not even using the OS libm.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17865>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to