#8606: floats in exponent do not propagate
--------------------------------+-------------------------------------------
   Reporter:  zimmerma          |       Owner:  AlexGhitza
       Type:  defect            |      Status:  new       
   Priority:  major             |   Milestone:  sage-4.4  
  Component:  basic arithmetic  |    Keywords:  float, RR 
     Author:                    |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------
 Consider the following (sage 4.3.3, since 4.3.4 does not compile
 on my machine):
 {{{
 sage: 2.0^53
 9.00719925474099e15
 }}}
 This is what we expect: the float {{{2.0}}} propagates to the whole
 expression.

 However:
 {{{
 sage: 2^53.0
 9007199254740992
 }}}
 Note the result is an integer, not a float! Thus the information
 about the inexact value has been lost. Same thing with
 {{{2^float(53)}}} and {{{2^RR(53)}}}.

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