#8017: incorrect trailing digits for continued fraction
--------------------------------+-------------------------------------------
   Reporter:  robertwb          |       Owner:  AlexGhitza
       Type:  defect            |      Status:  needs_work
   Priority:  major             |   Milestone:  sage-4.3.4
  Component:  basic arithmetic  |    Keywords:            
     Author:                    |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------
Changes (by zimmerma):

  * status:  needs_review => needs_work


Comment:

 while I'm running the doctests, a few comments: (1) maybe the
 documentation should say that the
 terms of the truncated continued fraction are (now) guaranteed exact
 (using interval arithmetic);
 (2) {{{If nterms is given, the precision is increased until the specified
 number of terms can be computed}}}: if possible, for example 22/7 will
 give only two terms.

 I also suggest giving an additional example showing that we can give as
 input a floating-point
 interval, and the difference with a floating-point number (where initial
 rounding error can
 give an incorrect result):
 {{{
 sage: continued_fraction(RealField(39)(e))
 [2, 1, 2, 1, 1, 4, 1, 1, 6, 1, 1, 8, 1, 1, 10, 2]
 sage: continued_fraction(RealIntervalField(39)(e))
 [2, 1, 2, 1, 1, 4, 1, 1, 6, 1, 1, 8, 1, 1, 10]
 }}}

 In the meantime the doctests finished, and I get two failures:
 {{{
 sage -t  core2/devel/sage-8017/sage/combinat/words/word_generators.py # 1
 doctests failed
 sage -t  core2/devel/sage-8017/sage/tests/book_stein_ent.py # 13 doctests
 failed
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8017#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to