Continued Fraction Expansion
| It has been suggested that this article or section be merged into Periodic continued fraction. (Discuss) |
Quadratic irrationals (numbers of the form, where a, b and c are integers), and in particular, square roots of integers, have periodic continued fractions. Sometimes what is desired is finding not the numerical value of a square root, but rather its continued fraction expansion. The following iterative algorithm can be used for this purpose (S is any natural number that is not a perfect square):
Notice that mn, dn, and an are always integers. The algorithm terminates when this triplet is the same as one encountered before. The expansion will repeat from then on. The sequence is the continued fraction expansion:
Read more about this topic: Methods Of Computing Square Roots
Famous quotes containing the words continued, fraction and/or expansion:
“Contrariwise, continued Tweedledee, if it was so, it might be; and if it were so, it would be; but as it isnt, it aint. Thats logic.”
—Lewis Carroll [Charles Lutwidge Dodgson] (18321898)
“The mother as a social servant instead of a home servant will not lack in true mother duty.... From her work, loved and honored though it is, she will return to her home life, the child life, with an eager, ceaseless pleasure, cleansed of all the fret and fraction and weariness that so mar it now.”
—Charlotte Perkins Gilman (18601935)
“We are caught up Mr. Perry on a great wave whether we will or no, a great wave of expansion and progress. All these mechanical inventionstelephones, electricity, steel bridges, horseless vehiclesthey are all leading somewhere. Its up to us to be on the inside in the forefront of progress.”
—John Dos Passos (18961970)