-- convert continued fraction to rational
ContFracToRat(L: LIST of INT): RAT
returns the rational number equal to the continued fraction whose quotients are given as input. The quotients must all be integers, only the very first may be non-positive.
/**/ ContFracToRat([1, 2, 2, 2, 2, 2, 2, 2]); 577/408