MathGroup Archive 2007

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

Search the Archive

Substituting simpler expressions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78666] Substituting simpler expressions
  • From: Steve Gray <stevebg at roadrunner.com>
  • Date: Fri, 6 Jul 2007 03:30:34 -0400 (EDT)

Suppose I  have a long complex expression in which the term
exx=Sqrt[x^2+y^2-xy] (for example) appears many times. I would like to
substitute say "rootxy" (for example) for it everywhere it appears. I
know about doing exx/.Sqrt[x^2+y^2-xy]-> rootxy but that doesn't do
it. Any tips? Thank you.

Steve Gray


  • Prev by Date: broken documentation pages
  • Next by Date: Background Color in Tooltip
  • Previous by thread: Re: broken documentation pages
  • Next by thread: Re: Substituting simpler expressions