Documente Academic
Documente Profesional
Documente Cultură
Srinivasan Nenmeli Ph D
Introduction
The aim of this article is to introduce Continued
Fractions to high school students. Fibonacci series and
the Golden ratio [phi = 1.618......] are convenient
starting points for this exploration of continued
fractions.
Unfortunately 'Continued Fraction' [CF for short ] is
not taught in schools and do not find a place in text
books of high school math or even undergraduate texts.
This subject is of fundamental importance in number
theory and finds many fascinating applications
,especially in computer algorithms for approximations
and electrical networks.
Many noted mathematicians like Euler, Gauss and
Lagrange have contributed to this topic ; the formal
-------
1 +1
-----
2/1
phi= 1+1
-----
3/2
phi= 1+ 2/3 = 5/3 = 1.666
This, of course, is a poor approximation to phi [1.618]
but then I took only four steps down the stair case to
get this number.
Exercise: Repeat the process to find the approximation
to phi by taking 8 steps in the Continued fraction.
Answer: The answer is simple: you will get:
phi ~ 34/21 = 1.619, the two numbers from the Fibonacci
sequence down the series!
The numbers in Fibonacci series give the approximate
ratio of p/q for phi as found from the continued
fraction expansion or CFE. There is no surprise here.
You can see how the golden ratio is tied to a
and so on.
The numbers b(1),b(2) ... can be 1, in which case we get
a "simple Continued Fraction" , as is the CF for phi.
The numbers a(1) a(2),a(3) ... are called partial
quotients.
We can express a CF as follows:
x = {a(0); a(1),a(2),....,b(1),b(2)......}
If the 'a' s repeat , write simply a with a bar over
that: .
Exercise
1 Solve the equation x2 -5x-1 =0 and find the
Continued Fraction expansion for the positive root.
[Ans: x = {5; 5,5,5,5,5...} = 5.0495097....
2 Find the approximation using three partial quotients.
A few mixed ratios and their continued fractions
To get our feet wet for CF, let us examine a few
simple mixed ratios and expanding them into CF's.
Example 1 : x= 29/19
29/19 = 1 + 10/19 = 1+ 2 (5/19)
= 1 + 2
-------
3+ 1
------
1 + 4/4
We are done! x={1;2,3,1}
These are called "finite CF" because the steps terminate
after k number of steps.
Example 2 : x = 415/93
Find the continued fraction expansion.
415/93 = 4 + 43/93
1/93/43 = 1/ 2+7/43
7/43 = 1/ (43/7) = 1/ 6+ (1/7)
We are done: x = {4;2,6,7]
These are CF s with finite terms or quotients and
rather easy to develop.
Example 3: Expand pi = 3.1416 into CF
pi = 31416/10000 = 3927/1250
= 3 + 177/1250
-------
15 + 1/1
= 3 + 1/7 + 1/16/15
= 3 + 1
---------
7 + 15/16
= 3 + 1/ (127/16) = 3 + 16/127 = 3.12598
= 397/127.
This is not a good approximation. [The error =
3.1416-3.1259 = 0.02 or 0.02 x100/ 314= 0.006% .
That means that the CF expansion does not converge fast;
we have to include more quotients in our folding
process.
There are other better CF's for pi. One elegant CF was
given by
L J Lange in 1999 .
His expansion is as follows:
4/ pi = 1 + 1
------
3 + 4
-------
5 + 9
------
7 + 16
--------
9 + 25
-----
and so on.
We had given earlier pi ~ 355/113 = 3.14159292 as a
useful one. The error is 0.000000266
The next approximation is : pi~ 103993/33102 ;
Check this ratio with your pocket calculator:
pi~ 3.141592653
My CASIO pocket calculator gives '4' in the last decimal
place! { most probably a pocket calculator uses such a
ratio in its software!]
Srinivasa Ramanujan [1887-1920] , a self-taught
mathematician from India, gave many results without
formal proofs or derivations. He simply wrote them down!
and so on.
Therefore 2 = { 1; 2,2,2,2....}
Let us see how we can approximate 2 by using CF:
Truncating the CF to 5 quotients:
2 {1;2,2,2,2,2} we get 99/70
99/70 = 1.414285714
The value given by a Casio calculator is:
2 = 1.414213562
The error in this approximation is: err= 0.00007 only.
Therefore, if you come across 2 in your problems ,
replace that by 99/70.
Exercise:
1 Find the CF expansion for 13 and 18.
[When you find the convergent folding the CF expansion,
with each step ,you will be getting positive and
negative errors alternating; that is the approximation
is either below or above the actual value. This is
characteristic of CF's.]
Log function and CF's
For log 2 , we have the CF :
= {0; 3,3, 9}
memory.
2 Polynomials and rational functions were approximated
by CF or by using Pade' approximation or similar schemes
which could be derived from CF.
3 Many complex functions which are usually stored in
tabular form could be written using approximations
derived from CF; These are called "look-up tables".
Examples are log tables and tables for error function
integral or Gaussian distribution .
4 Continued fractions are regularly used in the analysis
of electrical networks.
5 We may employ infinite series expansions or Taylor
series for approximating functions [such as sin or
tangent functions.] But continued fractions often give
better or more accurate approximations with fewer
computations.
Linking phi,'e' and pi:
We are familiar with Euler relation:
ei +1 = 0
This relates e,pi, i , 1 and 0.