Question: Indeces within loops

Hello everybody, I have a question, any help would be really appreciated. Let me illustrate my problem with a small example. Say I want to define 1000 variables like this: x_1:=1; x_2:=2; x_3:=3; .... x_1000:=1000; That would be very tedious to be done by habd so I would like to use a 'for' to do that.. Is that possible? The code below does not work: for i from 1 to 1000 do x_i := i ; end do; Any ideas? Thanks a lot in advance..
Please Wait...