#13217: Expand the Dedekind eta function more efficiently
-----------------------------+----------------------------------------------
   Reporter:  arminstraub    |             Owner:  craigcitro  
       Type:  enhancement    |            Status:  new         
   Priority:  minor          |         Milestone:  sage-5.2    
  Component:  modular forms  |          Keywords:              
Work issues:                 |   Report Upstream:  N/A         
  Reviewers:                 |           Authors:  Armin Straub
  Merged in:                 |      Dependencies:              
   Stopgaps:                 |  
-----------------------------+----------------------------------------------
 Currently, the Dedekind eta function is expanded by multiplying out its
 defining truncated product.  With the attached patch, Euler's identity is
 used instead for a significant increase in speed.

 Before:
 {{{
 sage: %timeit qexp_eta(ZZ[['q']],10)
 625 loops, best of 3: 1.41 ms per loop
 sage: %timeit qexp_eta(ZZ[['q']],100)
 25 loops, best of 3: 21.4 ms per loop
 sage: %timeit qexp_eta(ZZ[['q']],1000)
 5 loops, best of 3: 937 ms per loop
 }}}

 After:
 {{{
 sage: %timeit qexp_eta(ZZ[['q']],10)
 625 loops, best of 3: 155 µs per loop
 sage: %timeit qexp_eta(ZZ[['q']],100)
 625 loops, best of 3: 221 µs per loop
 sage: %timeit qexp_eta(ZZ[['q']],1000)
 625 loops, best of 3: 873 µs per loop
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13217>
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