#15373: Implement global_height for Integers
--------------------------------------+----------------------------
       Reporter:  paulfili            |        Owner:  paulfili
           Type:  enhancement         |       Status:  needs_work
       Priority:  minor               |    Milestone:  sage-5.13
      Component:  algebraic geometry  |   Resolution:
       Keywords:  sage-days55         |    Merged in:
        Authors:  Paul Fili           |    Reviewers:  Adam Towsley
Report Upstream:  N/A                 |  Work issues:  docstring
         Branch:                      |       Commit:
   Dependencies:                      |     Stopgaps:
--------------------------------------+----------------------------
Changes (by jdemeyer):

 * status:  needs_review => needs_work


Comment:

 The indentation is still wrong. It should be:
 {{{
     def global_height(self, prec=None):
         r"""
         Returns the absolute logarithmic height of this rational integer.

         INPUT:

         - ``prec`` (int) -- desired floating point precision (default:
           default RealField precision).

         OUTPUT:

         (real) The absolute logarithmic height of this rational integer.

         ALGORITHM:

         The height of the integer `n` is `\log |n|`.

         EXAMPLES::

             sage: ZZ(5).global_height()
             1.60943791243410
             sage: ZZ(-5).global_height(prec=100)
             1.6094379124341003746007593332
             # This is log(5):
             sage: exp(_)
             5.0000000000000000000000000000
         """
 }}}

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