Re: Recovering f[z] values?
- To: mathgroup at smc.vnet.net
- Subject: [mg42710] Re: Recovering f[z] values?
- From: "Steve Luttrell" <luttrell at _removemefirst_westmal.demon.co.uk>
- Date: Tue, 22 Jul 2003 04:40:44 -0400 (EDT)
- References: <bfgb8a$8g4$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
You can list all the previously computed results by doing the following: ?f For instance, if you evaluate this: Table[f[z] = z^2, {z, 10}]; and then evaluate this: ?f you will get the following output: f[1] = 1 f[2] = 4 f[3] = 9 f[4] = 16 f[5] = 25 f[6] = 36 f[7] = 49 f[8] = 64 f[9] = 81 f[10] = 100 -- Steve Luttrell West Malvern, UK "AES/newspost" <siegman at stanford.edu> wrote in message news:bfgb8a$8g4$1 at smc.vnet.net... > During the course of a long notebook evaluation a certain function > > f[z] = some function of z > > gets executed multiple times for various values of z which are no longer > remembered. Near the end of the calculation it's desired to recover all > these values, perhaps in a list > > {{z1,f[z1]}, {z2,f[z2}, . . . } > > Is there a simple way to do this? >