MultiSet/member
test if an expression is a member of a MultiSet
Calling Sequence
Parameters
Description
Examples
Compatibility
member( x, M )
x in M
M
-
MultiSet; a MultiSet
x
anything, an expression
member( x, M ) returns true if x is a member of the MultiSet M, false otherwise
Note: member( x, M ) is equivalent to evalb( x in M ) and also equivalent to evalb( M[x] <> 0 ).
Note: As a MultiSet is unordered, attempting to use the three-argument form of the member command, as in member( x, M, 'k' ) will result in an error.
M≔MultiSet⁡a=2,b=5
M≔a,2,b,5
member⁡b,M
true
member⁡c,M
false
evalb⁡ainM
member⁡a,M,k
Error, index of member is undefined
The MultiSet/member command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
MultiSet
MultiSet/intersection
MultiSet/subset
MultiSet/union
Download Help Document