Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8659 > unrolled thread
| Started by | "Harvey P. Dale" <hpd1@nyu.edu> |
|---|---|
| First post | 2012-02-21 11:12 +0000 |
| Last post | 2012-02-21 11:12 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to Multiply a Sequence of #s that depends on the previous # "Harvey P. Dale" <hpd1@nyu.edu> - 2012-02-21 11:12 +0000
| From | "Harvey P. Dale" <hpd1@nyu.edu> |
|---|---|
| Date | 2012-02-21 11:12 +0000 |
| Subject | Re: How to Multiply a Sequence of #s that depends on the previous # |
| Message-ID | <jhvu6a$815$1@smc.vnet.net> |
FoldList[Times,50,{1.1,1.15,1.2,1.35}]
Best,
Harvey
-----Original Message-----
From: Clutch [mailto:clutchderivative@gmail.com]
Sent: Monday, February 20, 2012 2:46 AM
Subject: 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?
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web