Question: Assign cat like variables when one of the pieces has assumptions

Hi all,

I don't find an easy way to do what follows.

I've a list of names, with assumptions on them, eg:

 

assume(a,real);
assume(b,real):

parameters:=[a,b]

then I try do to something like

i:=0;
for what in parameters do
temp:=i;

assign(cat('crlb_', what), temp);
i:=i+1;
end do

because I want to create variables which keep a trace of the parameters they describe in the last part of their name.

The problem is that this doesn't work, because of the assume over a and b. The names crlb_a and crlb_b do not exist after the for finishes (without errors).

What happens, If  I understand correclty, is that maple convert  "what" in a string, before passing it to cat in assign, then the names take a tilde, because of the assumption, and the name are not created as crlb_a and crlb_b. Printing crlb_a~ or crlb_b~ doesn't work either.

Help welkomed!
thanks

Salvo 

Please Wait...