#10736: int raised to a RealNumber gives an error
--------------------------------+-------------------------------------------
   Reporter:  jason             |       Owner:  AlexGhitza  
       Type:  defect            |      Status:  needs_review
   Priority:  major             |   Milestone:  sage-4.6.2  
  Component:  basic arithmetic  |    Keywords:              
     Author:                    |    Upstream:  N/A         
   Reviewer:                    |      Merged:              
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by ddrake):

 This passes all doctests and -- with my minimal knowledge of Cython and
 MPFR -- the code looks very good. I see that the relevant function
 automatically coerces to complex numbers; would it make sense to add a
 doctest for negative ints? And maybe zero, to be complete?
 {{{
 sage: int(-2)^(0.333333)
 0.629961522017056 + 1.09112272417509*I
 sage: int(0)^(1.0)
 0.000000000000000
 sage: int(0)^(0.0)
 1.00000000000000
 }}}

 My guess is that we'll need to test this on a bunch of platforms to suss
 out any numerical noise. But other than that, I can give this a weak
 positive review -- we need someone who knows MPFR and Cython better than I
 do. (Or, I need to learn more of those things...)

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