Close
Close window
__ge__ - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

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

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 maplesoft.maple as mpl

>>> S1 = mpl.execute('{3,4,sqrt(2)};')

>>> S2 = mpl.execute('{3,4};')

>>> S1 >= S2

True

>>> S1 > S2

True

>>> S1 <= S2

False

>>> S1 < S2

False


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /