Question: Error, (in tools/add) bad index into Matrix

Hi, I am developing a code with maple, summing up some elements of a 4th-order matrix like this for i to 3 do for j to 3 do for k to 3 do for l to 3 do S[i, j, k, l] := delta[i, j] + delta[k, l] end do end do end do end do; sum(sum('S[1, 1, k, l]*A[k, l]', 'l' = 1 .. 3), 'k' = 1 .. 3); But after execution, I get this error: Error, (in tools/add) bad index into Matrix "A" and "delta" are 3 by 3 matrices. Please help me come up with a solution. Thanx,
Please Wait...