MathGroup Archive 2008

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

Search the Archive

Re: Speeding up a list construction


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