e vs exp()?

Buckshot c6re at sdsumus.sdstate.edu
Thu Sep 19 23:33:02 EDT 2002


Can anyone here explain why I'm getting different results from
e**2 and exp(2)?  Which is more accurate?  

Python 2.2 (#1, Mar 27 2002, 14:56:58)
[GCC 2.95.3 20010315 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> from math import *
>>> e**2
7.3890560989306522
>>> exp(2)
7.3890560989306504



More information about the Python-list mailing list