Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Replacement
Replies: 4   Last Post: Jul 20, 1996 1:55 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Sergej Gerassimov

Posts: 1
Registered: 12/11/04
Replacement
Posted: Jul 17, 1996 1:40 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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.







Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.