MathGroup Archive 1999

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

Search the Archive

Re: Re: equaltity of lists


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



  • Prev by Date: Re: Mathematica loosing input focus all the time
  • Next by Date: PolynomialQ (wrong) behavior ?
  • Previous by thread: Re: Re: equaltity of lists
  • Next by thread: Re: Re: Re: equaltity of lists