Conversion from infinite product to continued fraction

 

We use the following formula

 

     (regular expression)

   in special form

 

as in 0220.

 

The infinite products of sin(x) and cos(x) are

 

 

 

For tan(x), we use tan(x)=sin(x)/cos(x) and the following formula

 

     (regular expression)

 in special form

 

For sin(x) for example directly,