The symbol_array command is used for creating multidimensional arrays of symbols. It takes two arguments:
The return value is an array with m dimensions n1,n2,…,nm with indexed symbols as elements. Symbols are created from the template string str by appending indices. Template string may contain m instances of the character ’%’, kth of which serves as the placeholder for the kth dimension index. If placeholders are omitted, indices are simply appended in case m=1, while in case m>1 they are separated from str and each other by the underscore (’_’).
The indices start from 0 in 0-based modes (such as the default mode in Xcas) resp. from 1 in 1-based modes (such as the Maple mode).
⎡ ⎣ | x0,x1,x2,x3,x4 | ⎤ ⎦ |
⎡ ⎢ ⎣ |
| ⎤ ⎥ ⎦ |
[[a11,a12,a13],[a21,a22,a23]] |
⎡ ⎢ ⎢ ⎣ | ⎡ ⎢ ⎢ ⎣ |
| ⎤ ⎥ ⎥ ⎦ | , | ⎡ ⎢ ⎢ ⎣ |
| ⎤ ⎥ ⎥ ⎦ | ⎤ ⎥ ⎥ ⎦ |
a1b2c3 |