MathGroup Archive 2010

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

Search the Archive

Re: "Accumulate" with operator Times.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114871] Re: "Accumulate" with operator Times.
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Tue, 21 Dec 2010 00:18:11 -0500 (EST)
  • References: <201012200540.AAA22768@smc.vnet.net>

On Dec 20, 2010, at 12:40 AM, Matthias Bode wrote:

> Hola:
> 
> In[5]:= Accumulate[{a, b, c}]  yields
> 
> Out[5]= {a, a + b, a + b + c}
> 
> Is there a simple command, similar to Accumulate, that yields
> 
> {a, a*b, a*b*c} ?

FoldList[Times,a,{b,c}]

Regards,
	Ssezi


  • Prev by Date: How to split a daily DateList by week?
  • Next by Date: Re: "Accumulate" with operator Times.
  • Previous by thread: "Accumulate" with operator Times.
  • Next by thread: Re: "Accumulate" with operator Times.