isdisjoint - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


isdisjoint

test whether sets are disjoint

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

x.isdisjoint(y)

Parameters

x

-

Set object

y

-

Set object

Description

• 

The isdisjoint function tests whether the Sets x and y are disjoint.

Examples

The following interactive session illustrates the use of isdisjoint:

>>> import maple

>>> import maple.namespace

>>> S1 = maple.execute('{ a, b, c }:')

>>> S2 = maple.execute('{ x, y, z }:')

>>> S3 = maple.execute('{ x, c }:')

>>> S1.isdisjoint(S2)

True

>>> S1.isdisjoint(S3)

False

See Also

OpenMaple

OpenMaple/Python/API

OpenMaple/Python/Expression

OpenMaple/Python/Set