News for hackers. Stuff that matters.
Re:Teaching Square Roots to a Five Year Old by Nav_Panel on Wednesday March 06, 2013 @01:38AM (#5329735)
I just want to point out one of the links on that page: http://en.wikipedia.org/wiki/Fast_inverse_square_root

Absolutely hilarious and amazingly magical method of algorithmically computing square roots. It right shifts a floating point number to essentially divide the exponent component by 2. Then it uses a weird magic number trick to get the correct result. Awesome random programming trivia.

Re:Teaching Square Roots to a Five Year Old by ars on Wednesday March 06, 2013 @01:58AM (#5329780)
Note that this is the inverse square root, i.e. 1/sqrt(x) (which can also be written x^(-1/2) ).