#10221: problem in rounding (RealField)
--------------------------------+-------------------------------------------
   Reporter:  zimmerma          |       Owner:  AlexGhitza
       Type:  defect            |      Status:  new       
   Priority:  minor             |   Milestone:  sage-4.6.1
  Component:  basic arithmetic  |    Keywords:            
     Author:                    |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by mhansen):

 Replying to [ticket:10221 zimmerma]:
 > Maybe {{{1/a}}} is first evaluated before {{{RU}}} is called on it?

 Yes, this is definitely the case.  {{{1/a}}} is evaluated before it even
 "sees" the {{{RU}}}.

 {{{

 sage: RD = RealField(53, rnd='RNDD')
 sage: RU = RealField(53, rnd='RNDU')
 sage: a=RD(1/3)
 sage: 1/RU(a)
 3.00000000000001
 sage: RU(1/a.exact_rational())
 3.00000000000001
 }}}

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