__ge__
test whether set is a subset
__gt__
test whether set is a proper subset
__le__
test whether set is a superset
__lt__
Calling Sequence
Parameters
Description
Examples
x.__ge__(y)
x >= y
x.__gt__(y)
x > y
x.__le__(y)
x < y
x.__lt__(y)
x <= y
x
-
Set object
y
__ge__ function returns true if the Set object y is a subset of the Set object x. This check can also be done by simply entering x >= y.
__gt__ function returns true if the Set object y is a proper subset of the Set object x. This check can also be done by simply entering x > y.
__le__ function returns true if the Set object y is a superset of the Set object x. This check can also be done by simply entering x <= y.
__lt__ function returns true if the Set object y is a proper superset of the Set object x. This check can also be done by simply entering x < y.
The following interactive session illustrates the use of these operators:
>>> import maple
>>> import maple.namespace
>>> S1 = maple.execute('{3,4,sqrt(2)};')
>>> S2 = maple.execute('{3,4};')
>>> S1 >= S2
True
>>> S1 > S2
>>> S1 <= S2
False
>>> S1 < S2
See Also
OpenMaple
OpenMaple/Python/API
OpenMaple/Python/Expression
OpenMaple/Python/Set
Download Help Document