This tutorial shows how to use a simple genetic algorithm to deduce physics formulas.
You didn't ask, but let me tell you I learned a lot of maths over at KhanAcademy.