Evolutionary algorithm to find Quake III's fast inverse square hack with Python
There is an amazing, easy to use peice of software for doing stuff like this called Eureqa (<a href="http://www.nutonian.com/products/eureqa/" rel="nofollow">http://www.nutonian.com/products/eureqa/</a>). I've used it to find approximations for a lot of different functions.