#4322: modular polynomials database is broken
-----------------------------------------+----------------------------------
 Reporter:  AlexGhitza                   |        Owner:  mabshoff
     Type:  defect                       |       Status:  new     
 Priority:  major                        |    Milestone:  sage-3.2
Component:  optional packages            |   Resolution:          
 Keywords:  modular polynomial database  |  
-----------------------------------------+----------------------------------
Changes (by robertwb):

  * owner:  robertwb => mabshoff
  * component:  coercion => optional packages

Comment:

 Actually, it looks like it's due to #4021, MPolynomial_libsingular over
 ZZ. It still works in the generic case:

 {{{
 sage: P.<x,y> = ZZ['t']['x,y']
 sage: a = sage.rings.polynomial.polydict.PolyDict({(1,0):1,(0,1):-1})
 sage: P(a)
 x - y
 }}}

 Despite the fact that polydicts are no longer used, I can't think of any
 reason why one would need this construction. More efficient (and less
 prone to breakage in the future is) direct construction from a dict.

 {{{
 sage: P.<x,y> = ZZ[]
 sage: P({(1,0):1,(0,1):-1})
 x - y
 }}}

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