#12116: perfect_power for integers
-----------------------------+----------------------------------------------
   Reporter:  roed           |          Owner:  tbd                             
           
       Type:  enhancement    |         Status:  new                             
           
   Priority:  major          |      Milestone:  sage-4.8                        
           
  Component:  PLEASE CHANGE  |       Keywords:                                  
           
Work_issues:                 |       Upstream:  Not yet reported upstream; Will 
do shortly.
   Reviewer:                 |         Author:  David Roe                       
           
     Merged:                 |   Dependencies:                                  
           
-----------------------------+----------------------------------------------
 Currently there are two functions for testing whether an integer is a
 perfect power:
 {{{
 sage: 8.is_power()
 True
 sage: 8.is_perfect_power()
 True
 }}}

  * This patch deprecates `is_perfect_power`.
  * It implements a new function, `perfect_power`, wrapping Pari's
 `ispower` function, expressing an integer in the form a^b^ with `b`
 maximal.  This revealed a bug in Pari for negative even powers: I'm in the
 process of reporting it.
  * It adds cross references between `is_power`, `is_power_of`,
 `is_prime_power` and `perfect_power`.

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