Question: Error, out of bound assignment to a list

I tried the following code...... un := [0, 0, 0, 0]: un[1] := tanh(k)*tanh(k*n): for i from 2 to 6 do uns[i-1] := eval(un[i-1], t = s): und[i-1] := diff(uns[i-1], s): unp[i-1] := eval(uns[i-1], n = n+1): unm[i-1] := eval(uns[i-1], n = n-1): un[i] := un[i-1]-(int((und[i-1]-(1-uns[i-1])^2)(unp[i-1]-unm[i-1]), s = 0 .. t)): end do: If i run the above code for 4 iterations (i am defining this in fourth line) everything is going fine but if i run the code for more than for 4 iterations i am getting the error "Error, out of bound assignment to a list". Actually i need to run this code for 6 iterations. Can any one help me on this.....Thanks in advance
Please Wait...