MathGroup Archive 2008

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

Search the Archive

Re: Speeding up a list construction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92969] Re: Speeding up a list construction
  • From: osepsi <sepsi.ors at gmail.com>
  • Date: Tue, 21 Oct 2008 06:24:14 -0400 (EDT)
  • References: <gdja5g$ief$1@smc.vnet.net>

Try this:

a = {a1,a2,a3, ... an};
asum=FoldList[Plus,0,a];

It works on Mathematica 6.0

Regards, =D6rs


  • Prev by Date: Re: A Dynamic mess
  • Next by Date: partial Dividers?
  • Previous by thread: Re: FindMinimum constraints
  • Next by thread: Re: Speeding up a list construction