#4000: Implement QQ['x'] via Flint ZZ['x'] + denominator
----------------------------------------------------------+-----------------
   Reporter:  malb                                        |       Owner:  
somebody  
       Type:  enhancement                                 |      Status:  
needs_work
   Priority:  major                                       |   Milestone:  
sage-4.5.2
  Component:  basic arithmetic                            |    Keywords:        
    
     Author:  Sebastian Pancratz, Martin Albrecht         |    Upstream:  N/A   
    
   Reviewer:  John Cremona, Martin Albrecht, Alex Ghitza  |      Merged:        
    
Work_issues:                                              |  
----------------------------------------------------------+-----------------

Comment(by was):

 On sage.math, qq.patch applies to sage-4.5 and passes all tests except the
 pickling test:
 {{{
 The following tests failed:

         sage -t  -long devel/sage/sage/misc/explain_pickle.py # 2 doctests
 failed
         sage -t  -long devel/sage/sage/structure/sage_object.pyx # 0
 doctests failed
 }}}

 And it's damned fast, compared to what is in sage now:
 {{{
 sage: R.<x> = QQ[]
 sage: f = R.random_element(degree=100)
 sage: timeit('f*f')
 625 loops, best of 3: 29 µs per loop
 sage: S.<x> = PolynomialRing(QQ,implementation='ntl')
 sage: g = S.random_element(degree=100)
 sage: timeit('g*g')
 625 loops, best of 3: 1.29 ms per loop
 sage: 1.29/0.029
 44.4827586206897
 sage: f = R.random_element(degree=1000)
 sage: g = S.random_element(degree=1000)
 sage: timeit('f*f')
 625 loops, best of 3: 1.31 ms per loop
 sage: timeit('g*g')
 5 loops, best of 3: 104 ms per loop
 sage: 104/1.31
 79.3893129770992
 }}}

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