| 1 | initial version |
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).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.