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

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

Search the Archive

Replacement

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4433] Replacement
  • From: ges at vsnhdd.cern.ch (Sergej Gerassimov)
  • Date: Mon, 22 Jul 1996 01:59:48 -0400
  • Organization: European Organization for Nuclear Research, Geneva
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

I have something like 

x/Sqrt[a^2+b^2]+Sqrt[a^2+b^2]/y 

and I'd like to substitute Sqrt[a^2+b^2] by r.

x/Sqrt[a^2+b^2]+Sqrt[a^2+b^2]/y //. Sqrt[a^2+b^2]->r
gives:

      x         r
------------- + -
Sqrt[a^2+b^2]   y

(replace one only in the numerator)
How to replace Sqrt[a^2+b^2] by r everywhere in the expression?

Thanks.
				S.

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Compression Algorithm wanted
  • Next by Date: DInterpolatingFunction.m
  • Previous by thread: Re: Replacement
  • Next by thread: Re: Replacement