MultiSet/IsGeneralized - Maple Programming Help

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

MultiSet/IsGeneralized

query whether negative multiplicities are permitted

 Calling Sequence IsGeneralized( M );

Parameters

 M - MultiSet; a MultiSet

Description

 • IsGeneralized(M) returns true if the MultiSet M was created via a constructor call of the form MultiSet[generalized].

Examples

 > $M≔\mathrm{MultiSet}\left(a=2,b=5\right)$
 ${M}{≔}\left\{\left[{a}{,}{2}\right]{,}\left[{b}{,}{5}\right]\right\}$ (1)
 > $\mathrm{IsGeneralized}\left(M\right)$
 ${\mathrm{false}}$ (2)
 > $N≔\mathrm{MultiSet}\left[\mathrm{generalized}\right]\left(c=-3,d=\frac{1}{2},e=3.14159,f\right)$
 ${N}{≔}\left\{\left[{c}{,}{-3}\right]{,}\left[{d}{,}\frac{{1}}{{2}}\right]{,}\left[{e}{,}{3.14159}\right]{,}\left[{f}{,}{1}\right]\right\}$ (3)
 > $\mathrm{IsGeneralized}\left(N\right)$
 ${\mathrm{true}}$ (4)

Compatibility

 • The MultiSet/IsGeneralized command was introduced in Maple 2016.