News for hackers. Stuff that matters.
Re:"The worst algorithm in the world?" by ephemient on Wednesday May 11, 2011 @11:27PM (#2539368)
I have not profiled the code, but I expect that the Newtonian approximation of sqrt is the slowest part.

It would surprise me if "powers" was a big problem relative to the rest. And no shortcuts: each of [1, b b², b³, b⁴, b⁵, …] (up to n) is used in the binomial expansion.

There are no comments on this comment yet.