Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: Re: Projections
  • Next by Date: Re: Non-algebraic solution
  • Previous by thread: Re: Using the same symbol for different quantities
  • Next by thread: Re : Principal Value integral