Previous Up Next

12.4.6  Creating array of symbols: symbol_array

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 ’%’, k-th of which serves as the placeholder for the k-th 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).

Examples.


Previous Up Next