cf SciMax Toolbox cfexpand

SciMax Toolbox >> cfdisrep

cfdisrep

Maxima Function

Calling Sequence

cfdisrep (list)

Description

Constructs and returns an ordinary arithmetic expression of the form a + 1/(b + 1/(c + ...)) from the list representation of a continued fraction [a, b, c, ...].

(%i1) cf ([1, 2, -3] + [1, -2, 1]);
(%o1)                     [1, 1, 1, 2]
(%i2) cfdisrep (%);
                                  1
(%o2)                     1 + ---------
                                    1
                              1 + -----
                                      1
                                  1 + -
                                      2
cf SciMax Toolbox cfexpand