#5396: Wrapping lcalc library
-----------------------------+----------------------------------------------
   Reporter:  rishi          |       Owner:  Rishi          
       Type:  enhancement    |      Status:  needs_work     
   Priority:  major          |   Milestone:  sage-4.3.1     
  Component:  number theory  |    Keywords:  lcalc          
Work_issues:                 |      Author:  rishi, ylchapuy
   Upstream:  N/A            |    Reviewer:  John Cremona   
     Merged:                 |  
-----------------------------+----------------------------------------------

Comment(by bober):

 Suggestion: in the function Lfunction_from_character, instead of calling
 chi.gauss_sum(), call chi.gauss_sum_numerical(). It is much faster, and in
 the end we are only interested in the numerical approximation anyway.

 {{{
 sage: G = DirichletGroup(101)
 sage: chi = G[1]
 sage: time A = chi.gauss_sum()
 CPU times: user 19.05 s, sys: 0.02 s, total: 19.07 s
 Wall time: 19.07 s
 sage: time B = chi.gauss_sum_numerical()
 CPU times: user 0.06 s, sys: 0.00 s, total: 0.06 s
 Wall time: 0.06 s
 }}}

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