This library provides functions for working with continued fractions and to compute reduced rational approximations to real numbers.
Based on Aleksandr Khinchin's excellent book Continued Fractions. See http://www.inwap.com/pdp10/hbaker/hakmem/cf.html for where to go next.