dynamically created symbol



Hi

I dont know if this is the best solution, but it works:

dimention : 5;
q : makelist( concat (prefix,i) , i , dimention);

and then for example

depends(q,t)

this will generate symbols: q1,q2,q3,q4,q5

Pawel.


On Thu, Jun 28, 2012 at 10:41 AM, J?rome Laurens
<jerome.laurens at u-bourgogne.fr> wrote:
> Hi list,
>
> Given a counter that takes integer values 1 or 2...,
> how can I create symbol named foo1 or foo2, ...
> based on the value of the counter
>
> foo[1], foo[2] is forbidden
>
> I tried the lisp side of maxima but my actual knowledge in Lisp is near 0.
> Still experimenting.
>
> TIA
>
> Jerome
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima