MathGroup Archive 2010

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

Search the Archive

Re: "Accumulate" with operator Times.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114872] Re: "Accumulate" with operator Times.
  • From: Yves Klett <yves.klett at googlemail.com>
  • Date: Tue, 21 Dec 2010 00:18:22 -0500 (EST)
  • References: <iemq88$m7m$1@smc.vnet.net>

Hi,

a quick peek at the help for Accumulate shows that:

"Accumulate[list] is effectively equivalent to Rest[FoldList[Plus,0,list]]"

Simply using this as template:

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

should do the trick.

Regards,
Yves

Am 20.12.2010 06:40, schrieb Matthias Bode:
> 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} ?
> 
> Best regards,
> 
> MATTHIAS BODE
> S 17.35775=B0, W 066.14577=B0
> 2'740 m
> AMSL.
> 


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