Re: Simplifying Sqrt[a^2*d^2] -> a*d
- To: mathgroup at smc.vnet.net
- Subject: [mg8389] Re: [mg8302] Simplifying Sqrt[a^2*d^2] -> a*d
- From: seanross at worldnet.att.net
- Date: Tue, 26 Aug 1997 20:41:27 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Carlos A. Felippa wrote: > > I want Sqrt[a^2*d^2] to be automatically simplified to a*d > wherever it appears in a very complex expression. > > In another system I simply declare a and d real nonnegative and let the > program figure out the rest. How do I do that in Mathematica? > The obvious rule expr/.{Sqrt[a^2*d^2]->a*d} does not work. You probably need the RealOnly package. You might also try the definition NonNegative[a]=True; NonNegative[d]=True;