MathGroup Archive 1999

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

Search the Archive

Re: Algebraic substitutions. HOW?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17697] Re: [mg17646] Algebraic substitutions. HOW?
  • From: BobHanlon at aol.com
  • Date: Fri, 21 May 1999 23:59:08 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 5/21/99 1:38:06 PM, alessio at mail.cern.ch writes:

>say I have an expression like (a^2)/(b^2) and I want to change it by
>introducing c:=a/b in order to obtain c^2.
>
>Euivalent exaple: h^3/t^2 -> (z:=h^2/t^2) -> z*h
>
>How do I get Mathematica to perform this kind of algebraic
>substitutions (on complex formulas)?
>

Alessio,

Here is one approach:

a^2/b^2 /. Solve[c==a/b, a]

{c^2}

a^2/b^2 /. Solve[c==a/b, b]

{c^2}

h^3/t^2 /. Solve[z==h^2/t^2, t] 

{h z,h z}

%//Union

{h z}


Bob Hanlon


  • Prev by Date: Re: Re: Is it a bug?
  • Next by Date: special characters in EPS graphics
  • Previous by thread: Algebraic substitutions. HOW?
  • Next by thread: Re: Algebraic substitutions. HOW?