Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

RE: Strange ReplaceAll behavior

  • To: mathgroup at
  • Subject: [mg36791] RE: [mg36774] Strange ReplaceAll behavior
  • From: "DrBob" <drbob at>
  • Date: Thu, 26 Sep 2002 04:56:41 -0400 (EDT)
  • Reply-to: <drbob at>
  • Sender: owner-wri-mathgroup at

f[c] == (c+b)/.ru[c] == (c+b)/.c->x == x+b == b+x

Bobby Treat

-----Original Message-----
From: Lawrence A. Walker Jr. [mailto:lwalker701 at] 
To: mathgroup at
Subject: [mg36791] [mg36774] Strange ReplaceAll behavior


For the life of me I am not sure why the following is not working in my 
v. 4.2:

f[x_]:=(a+b) /. ru[a];

Why do I get
f[c] = b+x

and not
f[c] = b+c?

What gives?


Lawrence A. Walker Jr.

  • Prev by Date: Exporting as space-delimited ASCII file in 3.0?
  • Next by Date: Why can't Mathematica do this simple integral ?
  • Previous by thread: Strange ReplaceAll behavior
  • Next by thread: Re: Strange ReplaceAll behavior