MathGroup Archive 2010

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

Search the Archive

Re: "Accumulate" with operator Times.


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.