Mathematica 9 is now available
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: equaltity of lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19063] Re: equaltity of lists
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Thu, 5 Aug 1999 01:34:52 -0400
  • References: <7o5ih1$rml@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Drago:
lhs == rhs  gives True if lhs and rhs are identical (allowing things like
2.0 == 2)
lhs == rhs  gives False if lhs and rhs are determined to be unequal by
comparisons between numbers or other raw data, such as strings
otherwise lhs == rhs  give lhs == rhs .
The last is the case with a==b

But

a === b

    False

because:

lhs === rhs  gives True if lhs and rhs are identical (not allowing 2.0 == 2)
otherwise lhs === rhs  give False .
The last is the case with a==b

Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565




Drago Ganic <drago.ganic at in2.hr> wrote in message
news:7o5ih1$rml at smc.vnet.net...
> Hi !!
>
> Why don't I get an answer (False) when I ask Mathematica
>
>     {a,b}=={b,a}
>
> like the one I get with
>
>     {1,2}=={2,1}
>     False
>
> Greetings from Croatia,
> Drago Ganic
>
>
>



  • Prev by Date: Re: Conversion of output
  • Next by Date: Re: Subscripts, Doh!!!
  • Previous by thread: Re: equaltity of lists
  • Next by thread: Re: equaltity of lists