MathGroup Archive 2005

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

Search the Archive

Re: Multiple Sums in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53710] Re: Multiple Sums in Mathematica
  • From: highegg at centrum.cz (highegg)
  • Date: Mon, 24 Jan 2005 03:37:34 -0500 (EST)
  • References: <6qyqawxiuj2s@legacy>
  • Sender: owner-wri-mathgroup at wolfram.com

On 22 Jan 05 16:04:14 -0500 (EST), Sebastian Brandt wrote:
>Hello,
>
>I want to perform a nested sum, where the number of summations is not
>specified. I.e., I am looking for a way to implement the sum
>
>sum[ f, {i1, 1, M}, {i2, 1, M}, ..., {in, 1, M} ]
>
>Does anbody know how to do this for arbitrary n?
>
>Regards,
>
>Sebastian Brandt


hi,

for example 

brutalSum[n_Integer]:=
Plus@@(Array[f,Table[M,{n}]])


  • Prev by Date: simplifying inside sum, Mathematica 5.1
  • Next by Date: Re: Multiple Sums in Mathematica
  • Previous by thread: Re: Multiple Sums in Mathematica
  • Next by thread: Re: Multiple Sums in Mathematica