This is a duplicate of continued_fraction_quadratic, right?