#16880: previous_prime, previous_prime_power, next_prime_power
-------------------------------------------------+-------------------------
       Reporter:  vdelecroix                     |        Owner:
           Type:  enhancement                    |       Status:  closed
       Priority:  major                          |    Milestone:  sage-6.7
      Component:  number theory                  |   Resolution:  fixed
       Keywords:                                 |    Merged in:
        Authors:  Vincent Delecroix              |    Reviewers:  Jeroen
Report Upstream:  N/A                            |  Demeyer
         Branch:                                 |  Work issues:
  35c0211766537e6769cd060ed528ad9d77e60068       |       Commit:
   Dependencies:                                 |     Stopgaps:
-------------------------------------------------+-------------------------
Changes (by leif):

 * commit:  35c0211766537e6769cd060ed528ad9d77e60068 =>


Comment:

 Some copy/paste accidents (could probably be corrected on the follow-ups):

 {{{
 +    def previous_prime(self, proof=None):
 +        r"""
 +        Returns the previous prime before self.
 +
 +        This method calls the PARI ``precprime`` function.
 +
 +        INPUT:
 +
 +        - ``proof`` - if ``True`` ensure that the returned value is the
 next
 +          prime power and if set to ``False`` uses probabilistic methods
 +          (i.e. the result is not guaranteed). By default it uses global
 +          configuration variables to determine which alternative to use
 (see
 +          :mod:`proof.arithmetic` or :mod:`sage.structure.proof`).
 }}}
 {{{
 +    def previous_prime_power(self, proof=None):
 +        r"""
 +        Return the previous prime power before self.
 +
 +        INPUT:
 +
 +        - ``proof`` - if ``True`` ensure that the returned value is the
 next
 +          prime power and if set to ``False`` uses probabilistic methods
 +          (i.e. the result is not guaranteed). By default it uses global
 +          configuration variables to determine which alternative to use
 (see
 +          :mod:`proof.arithmetic` or :mod:`sage.structure.proof`).
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/16880#comment:29>
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/d/optout.

Reply via email to