Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*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 1999

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

Search the Archive

Re: Simple edit ...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19548] Re: Simple edit ...
  • From: "William M. MacDonald" <wm2 at umail.umd.edu>
  • Date: Tue, 31 Aug 1999 00:52:32 -0400
  • Organization: University of Maryland
  • References: <7p5ddb$11r@smc.vnet.net> <7pipjn$39t$1@dragonfly.wolfram.com>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <7pipjn$39t$1 at dragonfly.wolfram.com> , Alan Lewis 
<alanlewis at home.com>  wrote:

> FullForm shows why it doesn't work. A work around is
>
> z/.Sqrt[d+e]->L/.(1/Sqrt[d+e])->1/L
>
>
>
> "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
>
>
>
A simple solution is
z/.d+e->L^2 //PowerExpand


--
William M. MacDonald
Professor of Physics
University of Maryland

Internet: wm2 at umail.umd.edu


  • Prev by Date: Re: Help with Multiple Integrals
  • Next by Date: Re: Re: Re: Re: circumference of an ellipse
  • Previous by thread: Re: Simple edit ...
  • Next by thread: Tricky Symbolizations with the Notation Package (Was Subscripts, Doh!!!)