Services & Resources / Wolfram Forums
MathGroup Archive
*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: computing cumulative sum for list

  • To: mathgroup at
  • Subject: [mg54417] Re: computing cumulative sum for list
  • From: "Steve Luttrell" <steve_usenet at>
  • Date: Sun, 20 Feb 2005 00:08:53 -0500 (EST)
  • References: <cv6s22$6kf$>
  • Sender: owner-wri-mathgroup at

I assume the 3rd element of your result was supposed to be 6!

This does what you want:


Steve Luttrell

"Uwe Ziegenhagen" <newsgroup at> wrote in message 
news:cv6s22$6kf$1 at
> Hello,
> I would like to compute the cumulative sum for a list, but do not find
> the command.
> For
> {1,2,3,4,5}
> I would like to get
> {1,3,4,10,15}
> Is there nothing builtin in Mathematica? I already looked in lists and
> matrices and Google...
> Uwe
> -- 
> mail to newsgroup at is read only from time to time. If
> you need an urgent answer, google for me.

  • Prev by Date: Mathematica 5.0 on Mandrake and Numlock
  • Next by Date: Re: Question about an integral
  • Previous by thread: Re: computing cumulative sum for list
  • Next by thread: RE: computing cumulative sum for list