continued fractions for nth degree roots



Robert wrote:

> The code for continued fractions for square roots appears to
> compute everything with integer arithmetic. It would be ideal if
> other roots could be handled so nicely; I don't know how to go
> about that. Be that as it may, cf should handle special cases
> for which it knows particular algorithms, and fall back on something
> like cf(bfloat(expr)) in the general case.

Quadratic irrationals have a rather simple cf expansion - it is
essentially periodic and vice versa. But as far sa I know no athere
simple scheme for cf expansions is known.

'Andreas