Why does Sage allow inequalities in Z/nZ?

sage: Z3 = Integers(3)
sage: a = Z3(4)
sage: b = Z3(2)
sage: a < b
True
sage: a < 3
False

While < may make sense in the set {0, 1, 2, ..., n-1}, it doesn't make 
sense in the ring Z/nZ:

sage: Z3(1) < Z3(2)
True
sage: 1+Z3(1) < 1+Z3(2)
False
sage: 2*Z3(1) < 2*Z3(2)
False

Is this current inequality checking actually useful for anything? Should it 
be removed?

-- 
John

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to