ReplaceAll problem
- To: mathgroup at smc.vnet.net
- Subject: [mg84464] ReplaceAll problem
- From: Kurda Yon <kurdayon at yahoo.com>
- Date: Wed, 26 Dec 2007 05:08:36 -0500 (EST)
Hi,
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?