Re: Using the same symbol for different quantities

*To*: mathgroup at smc.vnet.net*Subject*: [mg52440] Re: Using the same symbol for different quantities*From*: AES/newspost <siegman at stanford.edu>*Date*: Sat, 27 Nov 2004 01:40:40 -0500 (EST)*References*: <co4e29$l9c$1@smc.vnet.net> <co73t2$535$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

In article <co73t2$535$1 at smc.vnet.net>, David Bailey <dave at Remove_Thisdbailey.co.uk> wrote: > However, you will gain much flexibility by not defining things with '=', > but using transformation rules. For example, this gives you what you want: > > z /. {y -> f[x], z -> g[y]} And maybe name your rules at the beginning of your notebook, e.g. myRules = {y -> f[x], z -> g[y]} and then further down z /. myRules Gives you flexibility to change your rules if you change your notation later on.