symmdiff - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


MultiSet/symmdiff

compute the symmetric difference of two MultiSets

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

symmdiff( M, N )

Parameters

M

-

MultiSet; a MultiSet, set, or list

N

-

MultiSet; a MultiSet, set, or list

Description

• 

symmdiff( M, N ) returns the symmetric difference of M and N, which is (M union N) minus (M intersect 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,c=4

Ma,2,b,5,c,4

(1)

NMultiSeta=4,c=7

Na,4,c,7

(2)

symmdiffM,N

a,2,b,5,c,3

(3)

Compatibility

• 

The MultiSet/symmdiff command was introduced in Maple 2016.

• 

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

See Also

MultiSet

MultiSet/intersect

MultiSet/minus

MultiSet/plus

MultiSet/subset

MultiSet/union