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