problem with "concatting variables"



''(...) Is *read-time* substitution, a very special-purpose mechanism.  Try
ev(...).

But why are you creating variables in this strange way in the first place?
Why not use a[i]?

Also, how did you learn about ''(...) and concat? I wonder if there's some
documentation or tutorial that's miseducating people... we see this problem
often.

      -s
On Sep 25, 2013 5:21 AM, "Christian Stengg" <christian.stengg at gmx.at> wrote:

> Hello,
>
> why do I get the output bj in the loop?
>
> Thanks for any help,
> Christian
>
>
> i:1;
> concat(a,i)::10*i;
> ''(concat(a,i));
> print(''(concat(a,i)));
>
> for j:1 thru 2 do (
>     concat(b,j)::10*j,
>     print(''(concat(b,j)))
> );
>
> b1;
> b2;
>
>
> (%o1) 1
> (%o2) 10
> (%o3) 10
> 10
> (%o4) 10
> bj
> bj
> (%o5) done
> (%o6) 10
> (%o7) 20
> ______________________________**_________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/**mailman/listinfo/maxima<http://www.math.utexas.edu/mailman/listinfo/maxima>;
>