isdisjoint
test whether sets are disjoint
Calling Sequence
Parameters
Description
Examples
x.isdisjoint(y)
x
-
Set object
y
The isdisjoint function tests whether the Sets x and y are disjoint.
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
Download Help Document