symbolic subscript of literal list or matrix



-----maxima-bounces at math.utexas.edu wrote: -----

>> > I would like to change it so that a subscript expression is returned.
>> > E.g. a : [1, 2, 3]; a[k] => a[k]

What problem does this solve?  Might this scheme just make errors
happen later instead of sooner? Is that a good thing? Had the LU
code not immediately given array out of bounds errors, I might
still be debugging.

Might a : [1, 2, 3]; a[k] => a[k] be better handled via
a user-defined simplifying function?

Also what happens with things like a : [1, 2, 3]; a[%pi]? Or with
assume(k > 5), a : [1,2,3], a[k]? Is it worth the effort to
get such things to work reasonably?

Barton