Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15098 > unrolled thread
| Started by | "Louis Talman" <talmanl@gmail.com> |
|---|---|
| First post | 2013-07-03 08:48 +0000 |
| Last post | 2013-07-03 08:48 +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: Changing a list with the information of other "Louis Talman" <talmanl@gmail.com> - 2013-07-03 08:48 +0000
| From | "Louis Talman" <talmanl@gmail.com> |
|---|---|
| Date | 2013-07-03 08:48 +0000 |
| Subject | Re: Changing a list with the information of other |
| Message-ID | <kr0ogm$3dl$1@smc.vnet.net> |
On Mon, 01 Jul 2013 22:46:42 -0600, Joaquim Nogueira <jen@fct.unl.pt>
wrote:
> {{0, 1}, {1, w}, {2, 1 + w}, {3, 1 + 2 w}, {4, 2}, {5, 2 w}, {6, 2 + 2
> w}, {7, 2 + w}}
Call your first list L, your second M.
Then do
L /. {a_, b_} :> Set[f[b],a];
followed by
Map[f, M]
--Louis A. Talman
Department of Mathematical and Computer Sciences
Metropolitan State University of Denver
<http://rowdy.msudenver.edu/~talmanl>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web