MathGroup Archive 2003

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

Search the Archive

Re: Multiple sum excluding some terms

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44112] Re: [mg44089] Multiple sum excluding some terms
  • From: Hugh Walker <hwalker at gvtc.com>
  • Date: Thu, 23 Oct 2003 07:15:04 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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