Question: Upper triangular

Hi, I have a list of 15 numbers. I am trying to fit it into a triangular matrix. It will be a 6x6 matrix with zeros in the diagonal lines.

The first number will go into the M12, second number will go into M13, followed by M14... then, the six number will go into M23, seventh number into M24 and so on.

Here is what I got so far:

Z is a diagonal 6x6 matrix

node:=3
for i from 1 to (node*2-1) do
for j from (i+1) to (node*2) do
Z:=(z[i,i]-z[j,j])/2;
end do:
end do:

Please help. Thank you very much.

Please Wait...