On 07/02/12 16:54, Sarma Tangirala wrote:

Is is better to use pow() against **?

I suspect ** will be faster since it doesn't have the function
call overhead.

But I haven't tried timing it. Feel free to do some tests and find out.
Let us know how you get on!


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to