Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

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



  • 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