Osiris
Feb8-12, 12:31 PM
I test the code
L := [2, 1]
test := proc (i) local a1; a1 := 1; add(a || b*L[i], b = 1 .. 2) end proc
test(1);
will result
2 a1 + 2 a2
without evaluating `a1` which is a local variable defined in function test.
I expect to get `2*1+2*a2`.
Any ideas?
L := [2, 1]
test := proc (i) local a1; a1 := 1; add(a || b*L[i], b = 1 .. 2) end proc
test(1);
will result
2 a1 + 2 a2
without evaluating `a1` which is a local variable defined in function test.
I expect to get `2*1+2*a2`.
Any ideas?