CopyFreeObject on Repeat does not work

jcanadil shared this problem 7 years ago
New

Hi


Repeat[8, Rename[ (CopyFreeObject[ a ],0), "P"a ], SetValue[a, a+1]]


Create the following objects:

P1=(1,0)

P2=(1,0)

P3=(1,0)

...

P8=(1,0)


I think that would have to create the following objects

P1=(1,0)

P2=(2,0)

P3=(3,0)

...

P8=(8,0)


Thanks

Josep Lluís

© 2023 International GeoGebra Institute