MathGroup Archive 2005

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

Search the Archive

Re: Multiple Sums in Mathematica


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