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] ====