Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Re: Multiple Sums in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53729] Re: [mg53696] Multiple Sums in Mathematica
  • From: János <janos.lobb at yale.edu>
  • Date: Tue, 25 Jan 2005 05:03:31 -0500 (EST)
  • References: <200501230702.CAA11122@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Will

In[75]:=
Fold[Sum[f[#1, k],
  {k, 1, m}] & , x,
  Table[i[j], {j, 1, n}]]

do what you want ?

János


On Jan 23, 2005, at 2:02 AM, 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
>
----------------------------------------------
Trying to argue with a politician is like lifting up the head of a 
corpse.
(S. Lem: His Master Voice)


  • Prev by Date: Re:Numbers and their reversals
  • Next by Date: Form of a linear equation
  • Previous by thread: Multiple Sums in Mathematica
  • Next by thread: Re: Multiple Sums in Mathematica