Anonymous user
Continued fraction: Difference between revisions
m
Shrink the image a bit, fix a typo
(Created page with "{{draft task}} A number may be represented as a continued fraction (see http://mathworld.wolfram.com/ContinuedFraction.html) as follows: [[File:Continued_Fraction.PNG|cente...") |
m (Shrink the image a bit, fix a typo) |
||
Line 1:
{{draft task}}A number may be represented as a continued fraction (see http://mathworld.wolfram.com/ContinuedFraction.html) as follows:▼
▲A number may be represented as a continued fraction (see http://mathworld.wolfram.com/ContinuedFraction.html) as follows:
▲[[File:Continued_Fraction.PNG|center|Continued Fraction]]
The task is to write a program which generates such a number and prints a real representation of it.
The code
For the square root of 2 bN is always 1. a1 is 1 then aN is 2.
|