this morning I read about something really crazy you can do in C++ which involves bitshifting a float number and subtracting it from a magic number to get \frac{1}{\sqrt{x}}. You can find the explanation here, very cool: link


Share on Google+Share on RedditTweet about this on TwitterShare on Facebook

Leave a Reply

Your email address will not be published. Required fields are marked *