Suppose x is a list whose 1000 entries are variables xi, i=1,2,..., i.e.
x is [x1,x2,x3,x4,...,x1000]. Suppose I want to define a set of letrules
in a package called gleep and to do it by a command like:
for i:1 thru 5 do let(x[i]^2,i^2+1,gleep);
This doesn't work. E.g. it can't simplify x[1]^2 to get 2.
What is the right way to do it?
I'm using the list x because I don't know a way to generate indexed
variables on the fly. But even if I did, I don't think it would help
in this case.
--
Ignorantly,
Allan Adler
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.