MmaTranslator[Mma]

 return a list with zeros on the right

Parameters

 arguments - Maple translation of the Mathematica command arguments

Description

 • The PadRight command returns a list of a specified length padding the list with zeros on the right.

Examples

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\left[\mathrm{Mma}\right]\right):$

Use the command with the Maple translation.

 > $\mathrm{PadRight}\left(\left[a,b,c,d,e\right],9\right)$
 $\left[{a}{,}{b}{,}{c}{,}{d}{,}{e}{,}{0}{,}{0}{,}{0}{,}{0}\right]$ (1)

Alternatively, you can use the FromMma command with the evaluate option specified.

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{PadRight\left[\left\{a, b, c, d, e\right\}, 9\right]},\mathrm{evaluate}\right)$
 $\left[{a}{,}{b}{,}{c}{,}{d}{,}{e}{,}{0}{,}{0}{,}{0}{,}{0}\right]$ (2)