Re: Some Mathematica tips & tricks
- To: mathgroup at smc.vnet.net
- Subject: [mg61835] Re: [mg61821] Some Mathematica tips & tricks
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 1 Nov 2005 00:39:23 -0500 (EST)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
When a parameter such as an iterator is being held, use Evaluate First /@ Attributes /@ {Table, Do, Sum, Product} {HoldAll, HoldAll, HoldAll, HoldAll} iter={i, 1, 3}; #[f[i], Evaluate[iter]]& /@ {Table, Sum, Product} {{f(1), f(2), f(3)}, f(1)+f(2)+f(3), f(1) f(2) f(3)} Bob Hanlon > > From: Kristjan Kannike <kkannike at physic.ut.ee> To: mathgroup at smc.vnet.net > Date: 2005/10/31 Mon AM 01:17:16 EST > To: mathgroup at smc.vnet.net > Subject: [mg61835] [mg61821] Some Mathematica tips & tricks > > Hello everyone, > > In my first post to MathGroup, I would like to draw attention to some > Mathematica tips & tricks I have posted on my web site > <http://www.physic.ut.ee/~kkannike/english/prog/mathematica/>: > > constructing Tables with a previously unknown number of iterators; > > an attempt to make indexed variables more like a hash or dictionary type > in Perl or Python. > > Also there is a discussion of patterns for multiplying "scalar-looking" > terms in matrix equations by the unit matrix > <http://www.physic.ut.ee/~kkannike/english/prog/mathematica/patterns/ >. > > (And a full-blown Mathematica program to solve renormalization group > equations in effective field theories > <http://www.physic.ut.ee/~kkannike/english/science/physics/ RGE_run_EFT/>.) > > Kristjan Kannike > <http://www.physic.ut.ee/~kkannike/english/> > >