Comment on Fast inverse square rootComments−sandGorgon16yI think the best paper that explains the magic number (0x5f3759df) is http://www.lomont.org/Math/Papers/2003/InvSqrt.pdfLomont traces the history of the algorithm and the possible way that the magic number was derived - including more magic numbers (0x5f375a86)
Comments
I think the best paper that explains the magic number (0x5f3759df) is http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf
Lomont traces the history of the algorithm and the possible way that the magic number was derived - including more magic numbers (0x5f375a86)