#5499: Wrong precision when creating p-adic field element
---------------------------+------------------------------------------------
 Reporter:  kedlaya        |       Owner:  was       
     Type:  defect         |      Status:  new       
 Priority:  major          |   Milestone:  sage-3.4.2
Component:  number theory  |    Keywords:            
---------------------------+------------------------------------------------
 This was originally reported on ticket #5076 but seems to be a separate
 issue.
 {{{
 sage: K = Qp(11,8)
 sage: a = 11^-2 + O(11^5)
 sage: a
 11^-2 + O(11^3)
 }}}
 By contrast:
 {{{
 sage: K = Qp(11,8)
 sage: 11^(-2) + K(O(11^5))
 11^-2 + O(11^5)
 }}}
 Note that
 {{{
 sage: O(11^5).parent()
 11-adic Ring with capped relative precision 5
 sage: O(11^5).parent() == K
 False
 }}}

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