__ge__ - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


__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

Parameters

Description

Examples

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

See Also

OpenMaple

OpenMaple/Python/API

OpenMaple/Python/Expression

OpenMaple/Python/Set