MathGroup Archive 2007

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

Search the Archive

ReplaceAll problem

  • To: mathgroup at
  • Subject: [mg84464] ReplaceAll problem
  • From: Kurda Yon <kurdayon at>
  • Date: Wed, 26 Dec 2007 05:08:36 -0500 (EST)


I have the following code

Print["-1-> ", res];
x = (res /. {A2 -> 0});
Print["-2-> ", x];

which outputs the following

-1-> -0.023243
-2-> 0

As we can see from the first Print-output, "res" is just a real
number. It does not contain the A2. So, why the replacement of A2 by
zero should change the "res" value?  By the way x = (res /. {A2 -> 0})
returns -0.023243.

Could you pleas help me to solve the problem?

  • Prev by Date: Re: how fill PolarPlot?
  • Next by Date: How to change style of notebook permanently?
  • Previous by thread: DefaultAxesStyle
  • Next by thread: Re: ReplaceAll problem