Question: Summation with double indeces

Hello,

how do I double sum with variables with two indeces? Suppose having two lists of values list1:=[[1,2],[3,4]] and list2:=[5,6,7] and wanting to compute a double sum of list1[i,j]*list2[i]*list2[j], i=1..3, j=i..3. How could I do that?

Thank you.

Martin

Please Wait...