Re: Re: Recovering f[z] values?
- To: mathgroup at smc.vnet.net
- Subject: [mg42720] Re: [mg42707] Re: [mg42692] Recovering f[z] values?
- From: Sseziwa Mukasa <mukasa at jeol.com>
- Date: Wed, 23 Jul 2003 00:25:12 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On Tuesday, July 22, 2003, at 04:40 AM, Murray Eisenberg wrote: > If you are using version 5, a simple way to do this is with Reap and > Sow. You'll need to restructure the list obtained as the second item > in > the resulting list so as to suit your purposes. > > Here's an example: > > f[z_] := z^2 > Reap[Sow[z1 = 2]; Sow[f[z1]]; Sow[z2 = 3]; Sow[f[z2]]] > {9, {{2, 4, 3, 9}}} > Reap and Sow are in the experimental context in v4.2 as well.