A Continued Fraction Calculator version 4Oct10

This interactive calculator page accompanies a full explanation of Continued Fractions.
4Oct10 update:
New input functions: Fibonacci, Lucas and General Fibonacci functions see below
Optionally hide the More about this Continued Fraction information box to make more room for the Results area
Two new buttons: to reverse a (finite, non recurring) CF; to invert it (include/remove a 0 from the front)
Try these examples... Select one. Input boxes will then be filled in for you. Press the ARROW button that is  highlighted  to do the conversion.

C A L C U L A T O R   
Fraction:
sqrt
--
Fraction -> CF Fraction <- CF Continued Fraction:

Decimal number:
Decimal -> CF
O U T P U T   
R e s u l t s
More about this Continued Fraction:

The Mathematical functions and constants available in the "Decimal" box are:
NameDescriptionEg
abs the absolute value (size) of a number abs(-3.9)=3.9
acos arc cosine acos(0.5)=1.047197551196598=60° in radians
asin arc sine asin(sqrt(3)/2)=1.047197551196598=60° in radians
atan arc tangent 4 * atan(1)=3.141592653589793=90°= Pi radians
ceil round up to the nearest integer ceil(-3.9)=-3,ceil(2.1)=3
cos cosine of an angle (in radians) cos(60*Pi/180)=0.5
E e e=2.718281828459045
exp e to the power of exp(1)=2.718281828459045
floor round down to the nearest integer floor(-3.9)=-4,floor(2.1)=2
log log to base e log(E)=1,log(sqrt(E))=0.5
Phi golden section Phi=1.618033988749895
phi golden section phi=0.618033988749895
Pi pi pi=3.141592653589793
pow pow(x,p) is xp pow(2,3)=8
random a random number between 0 and 1 random()=0.42190062543
round round to the nearest integer round(-3.9)=-4, round(3.9)=4
sin sine of an angle (in radians) sin(Pi/2)=1
sqrt square root sqrt(2)=1.414213562373095
tan tangent of an angle (in radians) tan(Pi/4)=1
fib, Fib or FFib(n) is the n-th Fibonacci numberF(4)=3,F(-5)=5
luc, Luc or LLuc(n) is the n-th Lucas numberLuc(0)=2,Luc(1)=1
GG(a,b,n) is the n-th General Fibonacci number where G(a,b,0)=a,G(a,b,1)=bG(0,1,n)=F(n),G(2,1,n)=L(n)

Valid HTML 4.01! © 2003-2010 Dr Ron Knott
updated: 4 October 2010