Re: Re: Recalculating values in tables?
- To: mathgroup at smc.vnet.net
- Subject: [mg63930] Re: [mg63921] Re: Recalculating values in tables?
- From: ggroup at sarj.ca
- Date: Mon, 23 Jan 2006 04:11:46 -0500 (EST)
- References: <dqqbtt$lu1$1@smc.vnet.net> <dqsp9u$ccv$1@smc.vnet.net> <200601220552.AAA09572@smc.vnet.net>
- Reply-to: ggroup at sarj.ca
- Sender: owner-wri-mathgroup at wolfram.com
On Sunday, January 22, 2006 at 12:52 AM, Aes wrote:
> In article <dqsp9u$ccv$1 at smc.vnet.net>, Peter Pein <petsie at dordos.net>
> wrote:
>> if I understand you correctly, you want
>>
>> Table[
>> Module[{g1,g2,g3},
>> initialExpressions;
>> {g1,g2,g3}={f1,f2,f3};
>> {g1, g2, Sqrt[(g1-g2)/(g1*g2)]}],
>> {iterator}]
>> ?
> Yup, that's it -- and a neat way to express it in a compressed form
> (though I might also, in some cases, expand out the {g1,g2,g3} into
> separate lines for "readability").
What about doing something like this in the function definitions?
Eg:
f1[(whatever)]:=g1=(body)
f2[(whatever)]:=g2=(body)
- References:
- Re: Recalculating values in tables?
- From: AES <siegman@stanford.edu>
- Re: Recalculating values in tables?