Hacker News new | ask | show | jobs
by dis-sys 1320 days ago
this is not just source code, it is much better to be called magic.

also love the story behind it.

1 comments

Here’s a paper that explains how to derive that magic constant and others depending on what measure of error to minimize in the sqrt approximation.

http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf