Article 5FVWK Smallest denominator for given accuracy

Smallest denominator for given accuracy

by
John
from John D. Cook on (#5FVWK)

The following table gives the best rational approximations to , e, and (golden ratio) for a given accuracy goal. Here best" means the fraction with the smallest denominator that meets the accuracy requirement.

rational_approx_table.svg

I found these fractions using Mathematica's Convergents function.

For any irrational number, the convergents" of its continued fraction representation give a sequence of rational approximations, each the most accurate possible given the size of its denominator. The convergents of a continued fraction are like the partial sums of a series, the intermediate steps you get in evaluating the limit. More on that here.

Notice there are some repeated entries in the approximations for . For example, the best approximation for after the familiar 22/7 is 333/106 = 3.141509.... The fraction with the smallest denominator that gives you at least 3 decimal places actually gives you 4 decimal place. Buy one get one free.

There's only one repeated row in the e column and none in the column. So it may seem there are no interesting patterns in the approximations to . But there are. It's just that our presentation conceals them.

For one thing, all the numerators and denominators in the column are Fibonacci numbers. In fact, each fraction contains consecutive Fibonacci numbers: each numerator is the successor of the denominator in the Fibonacci series. There are no repeated rows because these ratios converge slowly to .

We don't see the pattern in the convergents for clearly in the table because we pick out the ones that meet our accuracy goals. If we showed all the convergents we'd see that the nth convergent is the ratio of the (n+1)st and nth Fibonacci numbers.

In a sense made precise here, is the hardest irrational number to approximate with rational numbers. The bottom row of the table above gives the 8th convergent for , the 15th convergent for e, and the 25th convergent for .

Related postsThe post Smallest denominator for given accuracy first appeared on John D. Cook.9Hm96ER4TlQ
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments