#12353: wrong comparison between RealIntervalField and RealField
-------------------------------------+--------------------------------------
   Reporter:  zimmerma               |          Owner:  AlexGhitza
       Type:  defect                 |         Status:  needs_work
   Priority:  major                  |      Milestone:  sage-5.0  
  Component:  basic arithmetic       |       Keywords:            
Work_issues:  remove RQDF reference  |       Upstream:  N/A       
   Reviewer:                         |         Author:            
     Merged:                         |   Dependencies:            
-------------------------------------+--------------------------------------

Old description:

> on some machines we get the following:
> {{{
> sage: RealIntervalField(53)(-1) > RR(1)
> False
> sage: RealIntervalField(54)(-1) > RR(1)
> True
> }}}
> The second answer {{{True}}} is clearly wrong.
>
> If your machine gets the correct answer {{{False}}} in both cases, then
> it most probably gives:
> {{{
> sage: RealIntervalField(54)(1) > RR(-1)
> True
> sage: RealIntervalField(54)(1) > RR(-1)
> False
> }}}
> where the second answer {{{False}}} is wrong.

New description:

 on some machines we get the following:
 {{{
 sage: RealIntervalField(53)(-1) > RR(1)
 False
 sage: RealIntervalField(54)(-1) > RR(1)
 True
 }}}
 The second answer {{{True}}} is clearly wrong.

 If your machine gets the correct answer {{{False}}} in both cases, then it
 most probably gives:
 {{{
 sage: RealIntervalField(53)(1) > RR(-1)
 True
 sage: RealIntervalField(54)(1) > RR(-1)
 False
 }}}
 where the second answer {{{False}}} is wrong.

--

Comment(by zimmerma):

 oops there was a typo in the description.

 Paul

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