Close
Close window
subset - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

MultiSet/subset

MultiSet subset operator

Calling Sequence

M subset N

Parameters

M

-

MultiSet; a MultiSet, set, or list

N

-

MultiSet; a MultiSet, set, or list

Description

M subset N returns true if the multiplicity of each element of M is at most the multiplicity of the same element of 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=1,b=2

Ma,1,b,2

(1)
>

NMultiSeta=2,b=5,c=4

Na,2,b,5,c,4

(2)
>

MsubsetN

true

(3)
>

Mb7

Mb7

(4)
>

MsubsetN

false

(5)

Compatibility

The MultiSet/subset operator was introduced in Maple 2016.

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


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /