Formulas for some diophantine approximation constants