MathGroup Archive 2010

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

Search the Archive

Re: "Accumulate" with operator Times.


FoldList.

In[1]:= FoldList[Times, x, {a, b, c, d}]

Out[1]= {x, a x, a b x, a b c x, a b c d x}

--David


On Dec 20, 12:40 am, Matthias Bode <lvs... at hotmail.com> 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} ?
>
> Best regards,
>
> MATTHIAS BODE
> S 17.35775=B0, W 066.14577=B0
> 2'740 m
> AMSL.



  • Prev by Date: Re: bibtex support in Mathematica 8
  • Next by Date: Re: "Accumulate" with operator Times.
  • Previous by thread: Re: "Accumulate" with operator Times.
  • Next by thread: Re: "Accumulate" with operator Times.