MathGroup Archive 1999

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

Search the Archive

Re: equaltity of lists

  • To: mathgroup at
  • Subject: [mg19092] Re: [mg19036] equaltity of lists
  • From: Maarten.vanderBurgt at
  • Date: Thu, 5 Aug 1999 01:35:11 -0400
  • Sender: owner-wri-mathgroup at


You should use

{a, b} === {b, a}

when you want False as a result.

The following I copied from the Mathematica help files. This explains the
difference between '===' and '=='.

lhs === rhs yields True if the expression lhs is identical to rhs, and
yields False otherwise.

SameQ requires exact correspondence between expressions, except that it
considers Real numbers equal if their difference is less than the
uncertainty of either of them.

2 === 2. gives False.

e1 === e2 === e3 gives True if all the ei are identical.

lhs == rhs returns True if lhs and rhs are identical.

lhs == rhs is used to represent a symbolic equation, to be manipulated
using functions like Solve.

lhs == rhs returns True if lhs and rhs are identical expressions.

lhs == rhs returns False if lhs and rhs are determined to be unequal by
comparisons between numbers or other raw data, such as strings.

Approximate numbers are considered equal if they differ in at most their
last eight binary digits (roughly their last two decimal digits).

2 == 2. gives True.

e1 == e2 == e3 gives True if all the ei are equal.


"Drago Ganic" <drago.ganic at> on 03-08-99 07:45:05 PM

Subject: [mg19092]  [mg19036] equaltity of lists

Hi !!

Why don't I get an answer (False) when I ask Mathematica


like the one I get with


Greetings from Croatia,
Drago Ganic

  • Prev by Date: Re: equaltity of lists
  • Next by Date: HELP: Mathlink and InterpolatingFunction
  • Previous by thread: Re: equaltity of lists
  • Next by thread: Re: Re: equaltity of lists