automatic generation of letrule packages



Hi Allan,

> Suppose x is a list whose 1000 entries are variables xi,
> i=1,2,..., i.e. x is [x1,x2,x3,x4,...,x1000].

OK, I wonder if we really want to explicitly assign xi 
to x[i] here. In many circumstances Maxima carries around
subscripts like so much extra baggage without paying much
attention. It's not necessary to actually construct
the list x before referring to elements of it. Maybe we
can get away with that here.

I'm not quite sure what the goal is here, but anyway I find

  x[2]  =>  5
  x[10] =>  101
  x[foo] =>  foo^2 + 1

etc., after

  matchdeclare (aa, true)$
  tellsimpafter (x[aa], aa^2 + 1)$

I'm probably off the mark with this stuff, but in any event 
it seems likely that we can avoid constructing 1000 rules.

Hope this helps,
Robert Dodier

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com