Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: [mg44122] Re: Multiple sum excluding some terms
  • From: Bill Rowe <readnewscix at mail.earthlink.net>
  • Date: Thu, 23 Oct 2003 07:15:32 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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