[Tutor] power of 2.718282

culpritNr1 ig2ar-saf1 at yahoo.co.uk
Tue Jan 13 19:19:03 CET 2009


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).

I would appreciate a low level solution because I have to iteratively call
that computation millions of times. Anything more efficient than
2.718182**10 may be good.

Thank you,

culpritNr1


-- 
View this message in context: http://www.nabble.com/power-of-2.718282-tp21441385p21441385.html
Sent from the Python - tutor mailing list archive at Nabble.com.



More information about the Tutor mailing list