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

Set

Python representation of a Maple set

Description

 • The maple.Set class represents Maple objects of type set.

Method Summary

 • maple.Set inherits all the methods defined on Indexable objects.
 • It implements the collections.abc.Set base abstract class from the collections.abc module.
 • The following methods are defined on any Set object and invoke the specified implementation in Maple.

 Method name Usage Maple implementation x <= y True if x is equal to or a subset of y x < y True when x is a strict subset of y x >= y True when x is equal to or a superset of y x > y True when x is a strict superset of y x and y Intersection of x and y x or y Union of x and y x ^ y Symmetric difference of of x and y x - y Set difference of x and y isdisjoint(x,y) True when x and y are disjoint

 • A maple.Set object may be transformed to a Python set using the set command.

Superclass

 •
 Examples import maple import maple.namespace as mpl S1 = mpl.numtheory.factorset( 139251547900201528249393594099433821579 ) S2 = mpl.numtheory.factorset( 164080939008352296076940100530587494269 ) S2.isdisjoint(S1) PS = set(S1) # convert to Python set