#13591: Improve padic add_bigoh
---------------------------+------------------------------------------------
   Reporter:  saraedum     |             Owner:  roed    
       Type:  enhancement  |            Status:  new     
   Priority:  trivial      |         Milestone:  sage-5.5
  Component:  padics       |          Keywords:          
Work issues:               |   Report Upstream:  N/A     
  Reviewers:               |           Authors:          
  Merged in:               |      Dependencies:          
   Stopgaps:               |  
---------------------------+------------------------------------------------
 There are a few minor issues with {{{add_bigoh()}}} of the padics:

 I believe that all these should produce errors:
 {{{
 sage: K = ZpCR(3,20)
 sage: K.one().add_bigoh(-1)
 O(3^-1)
 sage: K = ZpCA(3,20)
 sage: K.one().add_bigoh(-1)
 O(3^0)
 sage: K = ZpFM(3,20)
 sage: K.one().add_bigoh(10)
 1 + O(3^20)
 }}}

 Additionally, {{{add_bigoh()}}} doesn't work for infinity which can be
 annoying sometimes:
 {{{
 sage: K.one().add_bigoh(infinity)
 TypeError: unable to coerce <class 'sage.rings.infinity.PlusInfinity'> to
 an integer
 }}}

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