#11323: allow floats to be taken to complex powers
--------------------------------+-------------------------------------------
   Reporter:  kcrisman          |          Owner:  AlexGhitza    
       Type:  defect            |         Status:  new           
   Priority:  major             |      Milestone:  sage-4.7.1    
  Component:  basic arithmetic  |       Keywords:  plot li Li pow
Work_issues:                    |       Upstream:  N/A           
   Reviewer:                    |         Author:                
     Merged:                    |   Dependencies:                
--------------------------------+-------------------------------------------
 In `sage.rings.complex_number.ComplexNumber.__pow__??`
 {{{

 def __pow__(self, right, modulus):

     try:
         return (self.log()*right).exp()
     except TypeError:
         pass
 }}}
 makes it so that
 {{{
 float(5)^(0.5+14.1347251*i)
 }}}
 doesn't work.

 This means plotting even `mpmath.li` for complex values with a lambda
 function won't work nicely.

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