#5518: Improve efficiency of multiplcative_order() for number field elements
---------------------------+------------------------------------------------
 Reporter:  cremona        |       Owner:  was                              
     Type:  enhancement    |      Status:  new                              
 Priority:  major          |   Milestone:  sage-3.4.1                       
Component:  number theory  |    Keywords:  number field multiplicative order
---------------------------+------------------------------------------------
 The attached patch vastly improves the efficiency of the
 multiplicative_order() function for number field elements.  Before, this
 example:
 {{{
  sage: x = polygen(QQ)
             sage: K.<a>=NumberField(x^40 - x^20 + 4)
             sage: u = 1/4*a^30 + 1/4*a^10 + 1/2
             sage: u.multiplicative_order()
             6
             sage: a.multiplicative_order()
             +Infinity
 }}}
 would have required raising a to the power 2**40 (I'm serious).  Now it
 just works (fast).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5518>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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