MathGroup Archive 2005

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

Search the Archive

Re: To be or not to be...


On 9 Nov 2005, at 17:45, Ingolf Dahl wrote:

>
> To Mathgroup,
>
> Try the following commands in order:
>
> b = Sequence[]
>
> b == Sequence[]
>
> b != Sequence[]
>
> b === Sequence[]
>
> b =!= Sequence[]
>
> The four last lines all evaluate to "True" for me. Quite amazing!
>
> Best regards
>
> Ingolf Dahl
>
> Sweden
>
>

Your examples are actually equivalent to these:

Equal[]


True


Unequal[]


True


SameQ[]


True


UnsameQ[]


True


This does not seem so extremly amazing to me. The fact that Equal and  
Unequal etc, are defined with 0 arguments is clearly due to some  
"internal" needs of the Mathematica programmng language and has  
little to do with what these relations (which are normally considered  
as binary relations) mean elsewhere.

Andrzej Kozlowski


  • Prev by Date: Re: Write, Put,..
  • Next by Date: Re: Re: Mathematica 1
  • Previous by thread: Re: To be or not to be...
  • Next by thread: Re: To be or not to be...