Question: how to convert continued fraction?

we can get the continued fraction of cot(x) with the command

> convert(cot(x), confrac, x, 6)

the result is

(1+x^2/(-3+x^2/(5-(1/7)*x^2)))/x

 convert(cot(x), confrac, x, 6)

how could I convert this result to a form like

1/x-(1/10)*x+49*x/(20*x^2-210)

 

 

Please Wait...