I know that it may turn out useless, but this is precisely the reason why I'm asking.
Does any one know of an existing piece of code that would find me the best approximation to a given irrational number using ordinary math symbols and known constants like e, pi etc.?