All this fun fiddling around to do what is, on the surface, "simple" math brought back happy memories of reading about the "Carmack" approach of doing inverse square roots in C:
http://betterexplained.com/articles/understanding-quakes-fas... as found at Hacker News about 18 months ago:
http://news.ycombinator.com/item?id=419166