MathGroup Archive 2012

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

Search the Archive

Re: How to Multiply a Sequence of #s that depends on the previous #

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125086] Re: How to Multiply a Sequence of #s that depends on the previous #
  • From: "Harvey P. Dale" <hpd1 at nyu.edu>
  • Date: Tue, 21 Feb 2012 06:10:36 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201202200746.CAA24119@smc.vnet.net>

FoldList[Times,50,{1.1,1.15,1.2,1.35}]

	Best,

	Harvey

-----Original Message-----
From: Clutch [mailto:clutchderivative at gmail.com]
Sent: Monday, February 20, 2012 2:46 AM
To: mathgroup at smc.vnet.net
Subject: [mg125086] How to Multiply a Sequence of #s that depends on the
previous #

I have a list of #s : 1.10, 1.15, 1.20, 1.35.

I start off with 50 and the first # is 50 * 1.10.
The second # is the first # * 1.15.
The third # is the second # * 1.20.
The fourth # is the third # * 1.35.

I want to maintain a list of these #s.
How can this be done efficiently in Mathematica without running for
loops?




  • Prev by Date: Re: How to Multiply a Sequence of #s that depends on the previous #
  • Next by Date: Re: How to Multiply a Sequence of #s that depends on the previous #
  • Previous by thread: How to Multiply a Sequence of #s that depends on the previous #
  • Next by thread: Re: How to Multiply a Sequence of #s that depends on the previous #