Re: Simple edit ...
- To: mathgroup at smc.vnet.net
- Subject: [mg19333] Re: Simple edit ...
- From: Edward Ouellette <techie at mit.edu>
- Date: Mon, 16 Aug 1999 02:15:00 -0400
- Organization: Massachvsetts Institvte of Technology
- References: <7p5ddb$11r@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Mike,
I got it to work by adding another rule:
z //. {Sqrt[d+e] ->L, 1 / Sqrt[d+e] -> 1 / L}
a + L / a L
This may not be the most elegant solution, but it works!
cheers,
Ed
"Michael L. Stokes" wrote:
> Consider the following examaple;
>
> z = (a+Sqrt[d+e])/(a Sqrt[d+e])
>
> z //. Sqrt[d+e] ->L
>
> The replacement function only replaces the instance of Sqrt[d+e] in the
> numerator and leaves the instance in the denominator alone. Why does
> this not work and what is the work around?
>
> Regards,
> Mike