MathGroup Archive 2003

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

Search the Archive

Bug in ReplaceAll and ReplaceRepeated?


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?