convert to a multiset
convert( f, multiset )
table, list, or algebraic expression
This utility function converts f to a multiset. A multiset is represented in the form [⁢[e1,m1],...,[en,mn]⁢]; it is a list of pairs where each ei is a value (an expression), and mi is its multiplicity (an integer).
If f is a table, each index is interpreted as a value and the associated entry (which should be an integer) is interpreted as its multiplicity.
If f is an algebraic expression, each factor is interpreted as a value, and the exponent to which this factor is raised (which should be an integer) is interpreted as its multiplicity.
If f is a list, the number of instances of each entry in the list is interpreted as its multiplicity.
Note: The output from this command is a list-of-lists structure, which is not the same as the MultiSet object introduced in Maple 2016.
t ≔ table⁡x=1,y=3,z=2:
Download Help Document
What kind of issue would you like to report? (Optional)