MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: Re: Concentric contours about the centroid, having the same length, and interior to an initial contour.
  • Next by Date: Running The Combinatorica GraphEditor
  • Previous by thread: Errorbars using ListPlot and Epilog
  • Next by thread: Re: Bug in ReplaceAll and ReplaceRepeated?