#12968: round of symbolic expression (precision issue due to RR)
--------------------------------------------------------+-------------------
       Reporter:  dkrenn                                |         Owner:  
burcin       
           Type:  defect                                |        Status:  
needs_work   
       Priority:  major                                 |     Milestone:  
sage-5.1     
      Component:  symbolics                             |    Resolution:        
       
       Keywords:  round symbolic precision RR beginner  |   Work issues:        
       
Report Upstream:  N/A                                   |     Reviewers:  
Burcin Erocal
        Authors:  Mike Hansen                           |     Merged in:        
       
   Dependencies:                                        |      Stopgaps:        
       
--------------------------------------------------------+-------------------
Changes (by jdemeyer):

  * status:  positive_review => needs_work


Comment:

 This causes a doctest failure (see also the Patchbot):
 {{{
 sage -t  -force_lib
 devel/sage/sage/rings/polynomial/polynomial_rational_flint.pyx
 **********************************************************************
 File "/padic/scratch/jdemeyer/merger/sage-5.1.beta2/devel/sage-
 main/sage/rings/polynomial/polynomial_rational_flint.pyx", line 596:
     sage: f.reverse(I)
 Expected:
     Traceback (most recent call last):
     ...
     TypeError: can't convert complex to int; use int(abs(z))
 Got:
     Traceback (most recent call last):
       File
 "/padic/scratch/jdemeyer/merger/sage-5.1.beta2/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 "/padic/scratch/jdemeyer/merger/sage-5.1.beta2/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 "/padic/scratch/jdemeyer/merger/sage-5.1.beta2/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_17[19]>", line 1, in <module>
         f.reverse(I)###line 596:
     sage: f.reverse(I)
       File "polynomial_rational_flint.pyx", line 608, in
 
sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.reverse
  (sage/rings/polynomial/polynomial_rational_flint.cpp:7922)
         len = <unsigned long> n
       File "expression.pyx", line 751, in
 sage.symbolic.expression.Expression.__int__
 (sage/symbolic/expression.cpp:4932)
     ValueError: cannot convert I to int
 **********************************************************************
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12968#comment:10>
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