 * - Maple Help

MultiSet/*

MultiSet * operator Calling Sequence m * M Parameters

 m - integer; a real number, which must be a positive integer unless M is generalized, in which case it must be nonzero M - MultiSet; a MultiSet Description

 • m * M returns the MultiSet whose elements are the elements of M and whose multiplicities are m times the corresponding multiplicities in M. Examples

 > $M≔\mathrm{MultiSet}\left(a=2,b=5,c=4\right)$
 ${M}{≔}\left\{\left[{a}{,}{2}\right]{,}\left[{b}{,}{5}\right]{,}\left[{c}{,}{4}\right]\right\}$ (1)
 > $3M$
 $\left\{\left[{a}{,}{6}\right]{,}\left[{b}{,}{15}\right]{,}\left[{c}{,}{12}\right]\right\}$ (2)
 > $N≔{\mathrm{MultiSet}}_{\mathrm{generalized}}\left(x=1.5,y=-\frac{1}{2}\right)$
 ${N}{≔}\left\{\left[{x}{,}{1.5}\right]{,}\left[{y}{,}{-}\frac{{1}}{{2}}\right]\right\}$ (3)
 > $\frac{3N}{2}$
 $\left\{\left[{x}{,}{2.250000000}\right]{,}\left[{y}{,}{-}\frac{{3}}{{4}}\right]\right\}$ (4) Compatibility

 • The MultiSet/* operator was introduced in Maple 2016.