On 6/22/09, reyssat <eric.reyssat at math.unicaen.fr> wrote:
> - what are these options intended for ? The only difference between
> fixnum and flonum seems to be in the initialization (0 versus 0.0), but
> it seems possible to assing a float value to a fixnum array : is it
> right ? is it the same with the "any" option ?
>From what i can tell, the "type" option specifies only the
initial values. It doesn't ensure that only values of a certain
type can be assigned.
> - How do we use a hashed array ? this gives two different errors :
> h:make_array(hashed,4); h[blue]:color; h[20]:3;
> So what is "hashed" done for ?
It's likely that make_array(hashed, ...) is broken.
If you actually want a hashed array, you don't need to declare it
or construct it. An assignment like foo[blurf] : mumble;
creates a hashed array automatically.
Array handling in Maxima is an officially-recognized disaster area.
Sorry for the bother.
best
Robert Dodier