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