Re: Re: equaltity of lists

*To*: mathgroup at smc.vnet.net*Subject*: [mg19184] Re: [mg19162] Re: equaltity of lists*From*: "Tomas Garza" <tgarza at mail.internet.com.mx>*Date*: Tue, 10 Aug 1999 02:52:45 -0400*Sender*: owner-wri-mathgroup at wolfram.com

F. Mittermayr [mitterma at linz.vai.co.at] wrote: > Why do I get the answer True when I ask Mathematica > > a=x; b=x^2/x; > {a,b}=={b,a} > > Is it really true? What's about x=0? Mathematica simplifies x^2/x, so that a = b = x, and {a, b} == {b, a} gives True, in particular for x = 0. Check the value of b: In[1]:= a = x; b = x^2/x; {a, b} == {b, a} Out[2]= True In[3]:= b Out[3]= x Tomas Garza Mexico City