Question: adding arrays that aren't defined as matrices

Hello,

If I define two arrays in the following way:

for i from 0 to 2 do

for j from 0 to 2 do

A[i,j]:=[i+j]:

B[i,j]=[i-j]:

od: od:

 

Then if I try to add them and look at the 0,0th component of the result:

C:=evalm(A+B):

C[0,0];

 

I don't get an answer. (I've tried both the LinearAlgebra package and the linalg package.

What would I have to do to get them to add successfully ?

 

Thanks

Please Wait...