Re: When Is Precision[ ] $MachinePrecision, And When Is It Not?
- To: mathgroup at smc.vnet.net
- Subject: [mg47580] Re: When Is Precision[ ] $MachinePrecision, And When Is It Not?
- From: drbob at bigfoot.com (Bobby R. Treat)
- Date: Fri, 16 Apr 2004 05:21:26 -0400 (EDT)
- References: <email@example.com> <firstname.lastname@example.org> <email@example.com>
- Sender: owner-wri-mathgroup at wolfram.com
Look up == in Help, and you'll find: "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." N[2/3] == 2/3 N[2/3] === 2/3 True False Bobby Harold.Noffke at wpafb.af.mil (Harold Noffke) wrote in message news:<c5lfo0$bt2$1 at smc.vnet.net>... > Bobby: > > Thanks for your examples. I thought about them, and found a very > short one which still bothers me, because the answer is not what I > expected ... > > In:= N[2/3] > > Out= 0.666667 > > In:= N[2/3]==2/3 > > Out= True > > In:= ?== > lhs == rhs returns True if lhs and rhs are identical. > > Regards, > Harold