[Tutor] Question on how to do exponents

Alan Gauld alan.gauld at btinternet.com
Tue Feb 7 19:29:49 CET 2012


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/



More information about the Tutor mailing list