# Impossible to redefine

matheod shared this question 6 years ago

Hi,

I don't understand why I've got the error : "Impossible to redifine" when I try to change the definition of liste1 into

Séquence[{"U" + (k) + "=(f(x(U" + (k - 1) + ")),0)", "Segment[(x(U" + (k - 1) + "),0),(x(U" + (k - 1) + "),x(U" + (k) + "))]", "Segment[(x(U" + (k - 1) + "),x(U" + (k) + ")),(x(U" + (k) + "),x(U" + (k) + "))]"}, k, 1, 20]

I just changed the 10 into a 20.

Thanks !

(Note : I know this could be achieved without the Execute cmd and only with sequence)

https://ggbm.at/1388315 1

Hi, it seems that it is cmd, related to list1 which does not like it. A workaround : not use list1 and define :

Flatten[Sequence[{"U" + (k) + "=(f(x(U" + (k - 1) + ")),0)", "Segment[(x(U" + (k - 1) + "),0),(x(U" + (k - 1) + "),x(U" + (k) + "))]", "Segment[(x(U" + (k - 1) + "),x(U" + (k) + ")),(x(U" + (k) + "),x(U" + (k) + "))]"}, k, 1, 10]]

you'll can modify 10 to 20 without problem 1

Hi, it seems that it is cmd, related to list1 which does not like it. A workaround : not use list1 and define :

Flatten[Sequence[{"U" + (k) + "=(f(x(U" + (k - 1) + ")),0)", "Segment[(x(U" + (k - 1) + "),0),(x(U" + (k - 1) + "),x(U" + (k) + "))]", "Segment[(x(U" + (k - 1) + "),x(U" + (k) + ")),(x(U" + (k) + "),x(U" + (k) + "))]"}, k, 1, 10]]

you'll can modify 10 to 20 without problem

Thanks you, it work now.

But is it a bug ?