Question: error, bad index into matrix!!!

hello i am a final year maths student very inexperienced with maple. i am trying to obtain results with maple to show an algorithm in practice. the algorithm is a variation of an SOR algorithm used to solve an optimization problem. i realised that because the next term in the sequence (x^i+1) generated by my algorithm depends upon itself as well as x^i, i would have to try to compute each component of the vector x individually because the first entry in x^i+1 is only dependent on x^i, then the second entry in x^i+1 is dependent on x^i and only the first entry of x^i+1, which should have just been computed, etc. anyhow, like i said i am a maple novice and am having trouble writing my algorithm with maple. here is what i have written: > u[i+1][k]:=u[i][k]-w*(1/(M[k,k]))*(add(M[k,j]*u[i][j],j=1..5)+e*b[k]+add(T[k,j]*p[j],j=1..5)-add(M[k,j]*u[i+1][j],j=1..k-1)+add(M[k,j]*u[i][j],j=1..k-1)); i have explicitly stated the matrices M and T, the vectors p and b, the constants w and e, as well as the initial vector u[0]. when i press enter i get an error saying "Error, bad index into Matrix". i have no idea what this means, as all of my matrices are of correct dimension. any help would be greatly appreciated. thank you.
Please Wait...