MultiSet/minus - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : MultiSet : MultiSet/minus

MultiSet/minus

MultiSet difference operator

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

M minus N

Parameters

M

-

MultiSet; a MultiSet, set, or list

N

-

MultiSet; a MultiSet, set, or list

Description

• 

M minus N returns the set difference (counting multiplicity) between M and N.

• 

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.

Examples

MMultiSeta=2,b=5

Ma,2,b,5

(1)

NMultiSeta,b=3

Na,1,b,3

(2)

MminusN

a,1,b,2

(3)

Mminusb,a,a

b,4

(4)

Compatibility

• 

The MultiSet/minus operator was introduced in Maple 2016.

• 

For more information on Maple 2016 changes, see Updates in Maple 2016.

See Also

MultiSet

MultiSet/intersect

MultiSet/plus

MultiSet/subset

MultiSet/symmdiff

MultiSet/union