Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9781 > unrolled thread

Re: Question about DayOfWeek

Started byDrMajorBob <btreat1@austin.rr.com>
First post2012-04-25 04:34 +0000
Last post2012-04-25 04:34 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Question about DayOfWeek DrMajorBob <btreat1@austin.rr.com> - 2012-04-25 04:34 +0000

#9781 — Re: Question about DayOfWeek

FromDrMajorBob <btreat1@austin.rr.com>
Date2012-04-25 04:34 +0000
SubjectRe: Question about DayOfWeek
Message-ID<jn7utd$6cb$1@smc.vnet.net>
Use === (SameQ) rather than == (Equal).

To Equal, it is possible that Wednesday and Thursday are symbols with  
equal value.

Clear[x, y]
x == y
x == y (* returns unevaluated, since x and y may or may not be equal *)

x === y
False (* different expressions are not the same *)

Bobby

On Tue, 24 Apr 2012 04:34:58 -0500, Kent Holing <KHO@statoil.com> wrote:

> DayOfWeek[{1975,1,1}]==Wednesday gives True (as it should), but  
> DayOfWeek[{1975,1,1}]==Thursday gives
> Wednesday == Thursday and not False, as it should? Why is it so?
>


-- 
DrMajorBob@yahoo.com

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web