>
> sage: -oo < 0
> True
> sage: 0 < unsigned_infinity
> True
> sage: -oo < unsigned_infinity
> False
>
> as documented, it should be okay.  I mean, what does comparison even MEAN 
> with complex infinity in the mix?  I suppose you could make it incomparable 
> to anything but itself.  Really I think it's just there as a way to handle 
> certain results that come out, and then we added various methods so it fit 
> in the algebraic framework - for better or worse.
>

I would raise an error as if you compare complex numbers (in python):

sage: complex('2+j') < complex('1+j')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-9-8f8c003f8a62> in <module>()
----> 1 complex('2+j') < complex('1+j')

TypeError: no ordering relation is defined for complex numbers


Best,
Travis

 

-- 
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 [email protected].
To post to this group, send email to [email protected].
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