Changes between Version 4 and Version 5 of Ticket #14567
 Timestamp:
 05/18/13 12:54:09 (7 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #14567 – Description
v4 v5 8 8 6. there is no bridge with words (sage.combinat.words) 9 9 10 The patch proposed here develop some general design for dealing with continued fractions and solve s the issues 1, 2, 3 and 5 (and I hope 4); see the discussion below.10 The patch proposed here develop some general design for dealing with continued fractions and solve all issues above except 4 and 6; see the discussion below. 11 11 12 12 With the patch applied we can do … … 14 14 sage: (117/253).continued_fraction() 15 15 [0; 2, 6, 6, 3] 16 16 17 sage: K.<sqrt2> = QuadraticField(2) 17 18 sage: cff = (sqrt2/3 + 1/4).continued_fraction(); cff 18 19 [0; 1, (2, 1, 1, 2, 3, 2, 1, 1, 2, 5, 1, 1, 14, 1, 1, 5)*] 20 sage: cff.period() 21 (2, 1, 1, 2, 3, 2, 1, 1, 2, 5, 1, 1, 14, 1, 1, 5) 22 sage: cff.preperiod() 23 (0, 1) 19 24 sage: cff.value() 20 25 1/3*sqrt2 + 1/4 26 27 sage: cf_pi = continued_fraction(pi) 28 [3; 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, 1, 14, 2, 1, 1, 2, 2, 2, 2, ...] 29 sage: cf_pi.quotient(1500) 30 1 21 31 }}} 22 32 In particular we solve the question in #11345.