__ge__ - Maple Help

__ge__

test whether set is a subset

__gt__

test whether set is a proper subset

__le__

test whether set is a superset

__lt__

test whether set is a proper subset

 Calling Sequence x.__ge__(y) x >= y x.__gt__(y) x > y x.__le__(y) x < y x.__lt__(y) x <= y

Parameters

 x - Set object y - Set object

Description

 • __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.

Examples

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 True >>> S1 <= S2 False >>> S1 < S2 False