Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8661
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to Multiply a Sequence of #s that depends on the previous # |
| Date | 2012-02-21 11:13 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jhvu88$82j$1@smc.vnet.net> (permalink) |
FoldList[Times, 50, {1.10, 1.15, 1.20, 1.35}]
On 2/20/12 2:46 AM, Clutch wrote:
> 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?
>
--
Murray Eisenberg murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How to Multiply a Sequence of #s that depends on the previous # Murray Eisenberg <murray@math.umass.edu> - 2012-02-21 11:13 +0000
csiph-web