Ask Your Question

Revision history [back]

Let

sage: var('a,b')
sage: eq1 = a == b
sage: eq2 = a < b

Then

sage: eq1.operator() == operator.eq
True

versus

sage: eq2.operator() == operator.lt
True

operator is a python module and the comparison operators are lt (less than), le (lesser or equal), eq (equal), ne (different), gt (greater than) and ge (greater or equal).