problem with "concatting variables"



On 2013-09-26, Jaime Villate <villate at fe.up.pt> wrote:

> (%i2) b2:4$
> (%i3) ev(concat(b,2));
> (%o3) b2
> (%i4) ev(ev(concat (b,2)));
> (%o4) b2
> (%i5) ev(concat (b,2),infeval);
> (%o5) 4

ev is a really crazy function, isn't it?

ev (ev (ev (ev (ev (ev (ev (concat (b, 2))))))));
 => b2

> do you know another way to get the value 4 without using ''(...) ?

apply (ev, [concat (b, 2)]);
 => 4

FWIW

Robert Dodier