#4000: [with patch, needs work] Implement QQ['x'] via Flint ZZ['x'] + 
denominator
------------------------------+---------------------------------------------
 Reporter:  malb              |       Owner:  somebody       
     Type:  enhancement       |      Status:  new            
 Priority:  major             |   Milestone:  sage-wishlist  
Component:  basic arithmetic  |    Keywords:                 
 Reviewer:                    |      Author:  Martin Albrecht
   Merged:                    |  
------------------------------+---------------------------------------------

Comment(by spancratz):

 Almost all of the memory problems are now resolved.  They were arising
 because I wrongly assumed ``fmpz_`` methods (*not* ``fmpz_poly_``;  they
 work just fine) supported aliasing of the inputs and outputs.  Apart from
 the method ``fmpz_neg``, I think I have fixed this in all places where I
 am using it, apart from the square-free decomposition in
 polynomial_rational_flint.pyx.  I'll rewrite that, too, but I've already
 checked that this method does not get called in the following last two
 remaining doctest failures:

     {{{
     The following tests failed:

         sage -t  "devel/sage/sage/rings/qqbar.py"
         sage -t  "devel/sage/sage/structure/sage_object.pyx"
     }}}

 The test in ``qqbar.py`` that seems to break down is the following piece
 of code:

     {{{
     sage: x = polygen(AA)
     sage: r = QQbar.polynomial_root(x^5 - x - 1, CIF(RIF(0.1, 0.2),
 RIF(1.0, 1.1))); r
     sage: r.real().minpoly()
     }}}

 The test in ``sage_object.pyx`` that breaks has to do with unpickling, and
 it's triggered by the following two lines:

     {{{
     sage: std = os.environ['SAGE_DATA'] +
 '/extcode/pickle_jar/pickle_jar.tar.bz2'
     sage: sage.structure.sage_object.unpickle_all(std)
     }}}

 I will try to chase down the first problem a little further than the
 ``minpoly()`` function, perhaps I can resolve it myself.  But any help
 with the second problem in particular would be very much appreciated.

 Sebastian

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