This is http://trac.sagemath.org/ticket/16397

cmp on symbolics is the print order...



On Tuesday, May 27, 2014 3:05:49 PM UTC+1, vdelecroix wrote:
>
> Hi, 
>
> I was trying to build the interval (0, pi) in Sage (since #13125 is 
> merged in 6.3.beta2) but I just ran into trouble 
>
> sage: RealSet(0, pi) 
> (pi, 0) 
>
> The mess comes from the comparison in SR (called from RLF elements) 
>
> sage: RLF(pi) < RLF(0)  # hum !? 
> True 
> sage: cmp(pi, 0)   # this is fine 
> 1 
> sage: cmp(pi, SR(0))  # this is wrong 
> -1 
>
> Best 
> Vincent 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to