Bug in ReplaceAll and ReplaceRepeated?
- To: mathgroup at smc.vnet.net
- Subject: [mg44018] Bug in ReplaceAll and ReplaceRepeated?
- From: Artūras Acus <acus at itpa.lt>
- Date: Fri, 17 Oct 2003 05:14:56 -0400 (EDT)
- Organization: Institute of Theoretical Physics and Astronomy
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Sqrt[(X + Y + Z)^2] //. {Z -> 2, (a_ + b_)^c_ :> Expand[(a + b)^c]} don't replace Z with 2. If I remove c in right hand side of second rule, works as expected. is the following behaviour bug or the feature? In applies both to 4.1, and 5.0.