LoginLogin

POW is slower for exponents less than 7

Root / Programming Questions / [.]

12Me21Created:
Doing N*N*N is almost twice as fast as POW(N,3). However, the speed of POW increases slowly as the exponent increases (while the speed of N*N*N... increases more quickly), so after around 7, POW is better.

How many times are you going to move this?

couple more

Interesting. It doesn't look nice in the code, but I might give it practice.