#14826: Newton polygons
-----------------------------------+-----------------------------
       Reporter:  caruso           |         Owner:  roed
           Type:  enhancement      |        Status:  needs_review
       Priority:  major            |     Milestone:  sage-5.12
      Component:  padics           |    Resolution:
       Keywords:  Newton polygons  |     Merged in:
        Authors:  Xavier Caruso    |     Reviewers:
Report Upstream:  N/A              |   Work issues:
         Branch:                   |  Dependencies:  #14987
       Stopgaps:                   |
-----------------------------------+-----------------------------

Comment (by vbraun):

 Can you double-check the docstrings? I see a couple that aren't typeset
 correctly. E.g.
 {{{
 - polyhedron -- a polyhedron defining the Newton polygon        # no
 - ``polyhedron`` -- a polyhedron defining the Newton polygon    # yes

 - repetition -- a boolean (default: True)           # no
 - ``repetition`` -- a boolean (default: ``True``)   # yes


 Returns ``self`` dilated by `exp`    # no
 Returns ``self`` dilated by ``exp``  # yes
 }}}

 You can implement the comparison operators much easier via
 {{{
 def __cmp__(self, other):
     c = cmp(type(self), type(other))
     if c != 0:
         return c
     return cmp(self._polyhedron, other._polyhedron)
 }}}
 though doing it the hard way is also acceptable.

--
Ticket URL: <http://trac.sagemath.org/ticket/14826#comment:22>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to