MathGroup Archive 2003

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

Search the Archive

Re: Multiple sum excluding some terms


On Wednesday, October 22, 2003, at 02:24 AM, Guillermo Sanchez wrote:

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

Hello Guillermo:

How about

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

0r

Sum[m[j,k] If[j==k,0,1],{j,1,3},{k,1,3}]

Regards,

==========
Hugh Walker
Gnarly Oaks


  • Prev by Date: extracting variables from an expression
  • Next by Date: Re: Multiple sum excluding some terms
  • Previous by thread: Multiple sum excluding some terms
  • Next by thread: Re: Multiple sum excluding some terms