On Tue, Jan 13, 2009 at 1:19 PM, culpritNr1 <ig2ar-s...@yahoo.co.uk> wrote: > > Hello All, > > It such a simple question, but because of that, googling for an answer just > pulls the wrong results. > > How do I compute a power of e in Python? > > Say I need 2.718282 to the 10th. In R for example, I just do exp(10).
import math math.exp(10) http://docs.python.org/library/math.html#math.exp Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor