]> Continued Fractions - Cheat Sheet

Cheat Sheet

coth(1 /n) = [n;3 n,5 n,...] tan(1 ) = [1 ;1 ,1 ,3 ,1 ,5 ,1 ,7 ,1 ,...] tan(1 /n) = [0 ;n1 ,1 ,3 n2 ,1 ,5 n2 ,1 ,7 n2 ,1 ,...] (n>1 )

Invert (insert or remove a 0) to derive expansions for tanh and cot. We can compute the other trigonometric and hyperbolic trigonometric functions by solving quadratic equations involving continued fractions via the tanx/2 and tanhx/2 identities.

arctanz = z1 +z 2 3 +(2 z) 2 5 +(3 z) 2 ... tanhz = z1 +z 2 3 +z 2 5 +z 2 ... tanz = z1 z 2 3 z 2 5 z 2 ...

The inverse tangent is useful for computing other inverse trigonometric functions. Its expansion also gives an expansion for π by setting z=1 . Also,

π=3 +1 6 +9 6 +25 6 +...

but this converges far too slowly for practical purposes.

log(1 +x) = x1 +1 2 x2 x+2 2 x3 2 x+... e x = 1 +x1 xx+2 2 xx+3 3 xx+4 ...

Other well-known expansions [scoured from web searches; I wish I knew how these were derived]:

e = [2 ;1 ,2 ,1 ,1 ,4 ,1 ,1 ,6 ,1 ,...] exp(1 /n) = [1 ;n1 ,1 ,1 ,3 n1 ,1 ,1 ,5 n1 ,1 ,1 ,...] (n>1 ) exp(2 m/n) = 1 +2 m(nm)+m 2 3 n+m 2 5 n+m 2 7 n+... exp(z) = 1 +z1 z2 +z3 z2 +z5 z2 +...