Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9781 > unrolled thread
| Started by | DrMajorBob <btreat1@austin.rr.com> |
|---|---|
| First post | 2012-04-25 04:34 +0000 |
| Last post | 2012-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.
Re: Question about DayOfWeek DrMajorBob <btreat1@austin.rr.com> - 2012-04-25 04:34 +0000
| From | DrMajorBob <btreat1@austin.rr.com> |
|---|---|
| Date | 2012-04-25 04:34 +0000 |
| Subject | Re: 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
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web