#12171: Update MPFI to 1.5.0
---------------------------+------------------------------------------------
   Reporter:  mhansen      |          Owner:  tbd        
       Type:  enhancement  |         Status:  needs_info 
   Priority:  major        |      Milestone:  sage-4.8   
  Component:  packages     |       Keywords:  sd35       
Work_issues:               |       Upstream:  N/A        
   Reviewer:               |         Author:  Mike Hansen
     Merged:               |   Dependencies:             
---------------------------+------------------------------------------------

Comment(by zimmerma):

 ok I understand why the following "fails":
 {{{
 sage: R = RealIntervalField(100)
 sage: s = 1/R(3)
 sage: t = loads(dumps(s))
 sage: t == s
 False
 }}}
 In the {{{real_mpfi.pyx}}} file, it is said that s cmp t returns True if a
 cmp b is true for any
 element a in s and any element b in t. Obviously when cmp is == and t is
 the same interval as s
 this can hold only when both are the same point interval. Thus to check if
 s and t are the same
 interval, we should write:
 {{{
 sage: (t.upper(), t.lower()) == (s.upper(), s.lower())
 True
 }}}
 Paul

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