About continued fractions

(Explaining what a continued fraction is is a job for MathWorld or Wikipedia)

This site will accept a mathematical expression or constant and try to convert it into such a fraction. The code behind it is simple. It takes the value of the expression (x) and applies these rules:
\[ {a_{n}(x)} = {{1} \over {a_{n-1}(x) - b_{n-1}(x)}} \\ {b_{n}(x)} = {\lfloor a_{n}(x) \rfloor} \] It then prints out all the values of b.