MmaTranslator[Mma] - Maple Help

Home : Support : Online Help : Connectivity : Mathematica Translator : Mma : MmaTranslator/Mma/Dimensions

MmaTranslator[Mma]

 Dimensions
 return a list of dimensions of an expression

 Calling Sequence Dimensions(arguments)

Parameters

 arguments - Maple translation of the Mathematica command arguments

Description

 • The Dimensions command returns a list of dimensions of the specified expression.

Examples

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

Use the command with the Maple translation.

 > $\mathrm{Dimensions}\left(\mathrm{Matrix}\left(\left[\left[1,2\right],\left[1,0\right]\right]\right)\right)$
 $\left[{6}\right]$ (1)

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

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{Dimensions\left[\left\{\left\{1, 2\right\}, \left\{1,0\right\}\right\}\right]},\mathrm{evaluate}\right)$
 $\left[{2}{,}{2}\right]$ (2)