Lagrange theorem on continued fractions (source code)

= Lagrange theorem on continued fractions
{c}

The Lagrange theorem says that a real number has an eventually periodic simple continued fraction exactly when it is a quadratic irrational.