MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Multiple sum excluding some terms


On 10/22/03 at 3:24 AM, guillerm at aida.usal.es (Guillermo Sanchez) wrote:


> How make a multiple sum (example: Sum[m[i, j], {j, 1, 3}, {i, 1, 2}])
> excluding terms i = j?

Here are a couple of ways to achieve what you want

Sum[(1-KroneckerDelta[i,j]) m[i,j],{j,3}, {i,2}]

or

A = Table[m[i,j],{j,3},{i,2}]
Plus@@Flatten@A-Tr@A
--
To reply via email subtract one hundred and nine


  • Prev by Date: Re: Multiple sum excluding some terms
  • Next by Date: Re: pdf-export
  • Previous by thread: Re: Multiple sum excluding some terms
  • Next by thread: Re: Multiple sum excluding some terms