On 2/8/2012 3:06 AM, Edd Barrett wrote:
I think you have to decide if you want a function with an associated
default value
other than those explicit values stored in a hash table, hash[x]:= ....
or just a hash table defined via make_array(hashtable). The latter,
defined in
Maxima sometime after version 5.23.2 appears to me to be much less useful,
and in particular does not have the functionality of defining default
values.
You are defining one of each. Omit the make_array and your contrived
function works
just fine.
however, hash[a] and h[a] are the same.
This can be fixed, perhaps by passing the name e.g. new_hash(h), but may
require
some diddling around to make sure the argument is properly evaluated.
RJF
>