Conversion from Taylor expansion to continued fraction

 

Taylor expansion of hyperbolic functions

 

  for

                for

           for

 

Here, first several Bernoulli numbers are given by B0=(-1), B1=1/6, B2=1/30, B3=1/42,

 

B4=1/30, B5=5/66, B6=691/2730,… E is absolute values of Euler numbers.

 

 

To convert the rest or all in general, we usually use the following formula

 

  (regular expression)

   in special form

 

For example,

 

  in special form