MultiSet/=
test if two MultiSets are equal
MultiSet/<>
test if two MultiSets are not equal
Calling Sequence
Parameters
Description
Examples
Compatibility
M = N
M <> N
M
-
MultiSet; a MultiSet, set, or list
N
M = N constructs a boolean expression which tests if M and N are equal as MultiSets, under evaluation either explicity via evalb or implicitly as the test of a conditional, such as an if ... then ... end if statement.
M <> N similarly tests for inequality of MultiSets.
At least one argument must be a MultiSet for this routine to be invoked. Any other argument which is expected to be a MultiSet can be a MultiSet, a set or a list; in the latter two cases the argument is converted to a MultiSet before proceeding to evaluate this command. IsGeneralized(M) must return the same value for all MultiSet arguments M, and all non-MultiSet arguments will be promoted to MultiSets with this same property.
M≔MultiSet⁡a=2,b=5
M≔a,2,b,5
N≔MultiSet⁡M
N≔a,2,b,5
evalb⁡M=N
true
Remove⁡N,b,2
3
a,2,b,3
evalb⁡M≠N
evalb⁡N=a,b,a,b,b
The MultiSet/= and MultiSet/<> operators were introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
evalb
if ... then ... end if
MultiSet
Download Help Document