#5946: bug in content for p-adic polynomials
------------------------+---------------------------------------------------
 Reporter:  AlexGhitza  |       Owner:  roed                     
     Type:  defect      |      Status:  new                      
 Priority:  minor       |   Milestone:  sage-4.0                 
Component:  padics      |    Keywords:  content p-adic polynomial
------------------------+---------------------------------------------------
 We ran into this at #5921.  There are two separate issues: polynomials
 with coefficients in a p-adic field should not have a {{{content()}}}
 method, since it doesn't make sense (the same way that having a
 {{{content()}}} method for polynomials with rational coefficients doesn't
 make sense).

 The second issue is with the {{{content()}}} method for polynomials with
 coefficients in p-adic rings.  Here's an example:

 {{{
 sage: P.<x> = ZZ[]
 sage: f = x + 2
 sage: f.content()
 1
 sage: fp = f.change_ring(pAdicRing(2, 10))
 sage: fp
 (1 + O(2^10))*x + (2 + O(2^11))
 sage: fp.content()
 0
 }}}

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