I am a bit confused ; I noticed that if I do :
a[sqrt(2)] : 1;
arrays;
I would get :
[a]
So a
is an array for Maxima… yet sqrt(2)
is an irrational number.
I use to think of an array as a collection of items sorted by indices, where those indices are integer numbers… I acknowledge that my definition for "array" has been strongly influenced by other, "non-symbolic" programming languages. In those languages, arrays "map" to a certain contiguous region of a computer's memory. It is therefore natural to use integer number as indices since integer number are countable. However, real numbers are not countable.
Obviously, maxima seems to have a different definition for the term "array" : what is it exactly ? (the documentation does not define it, at least there is no introductory paragraph in the documentation section dedicated to arrays)