This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, serhiy.storchaka, squeakbat
Date 2013-04-29.07:21:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367220070.38.0.884568365289.issue17865@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-04-29 07:21:10mark.dickinsonsetrecipients: + mark.dickinson, serhiy.storchaka, squeakbat
2013-04-29 07:21:10mark.dickinsonsetmessageid: <1367220070.38.0.884568365289.issue17865@psf.upfronthosting.co.za>
2013-04-29 07:21:10mark.dickinsonlinkissue17865 messages
2013-04-29 07:21:10mark.dickinsoncreate