Re: Reversing PowerExpand
- To: mathgroup at smc.vnet.net
- Subject: [mg37565] Re: Reversing PowerExpand
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 5 Nov 2002 05:00:11 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <aq0379$4nd$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Sqrt[x] Sqrt[y] /. c_.*Power[a_, n_]*Power[b_, n_] :> c*Power[a*b, n] But be carefull when x and y are complex. Regards Jens Dave Snead wrote: > > I can use PowerExpand to go from > > Sqrt[x y] to Sqrt[x] Sqrt[y] > > How do I reverse this and go from > > Sqrt[x] Sqrt[y] to Sqrt[x y] > > Thanks in advance. > --Dave Snead