MathGroup Archive 1999

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

Search the Archive

Re: $MachineEpsilon

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19534] Re: $MachineEpsilon
  • From: Harald Giese <giese at dkrz.de>
  • Date: Tue, 31 Aug 1999 00:52:24 -0400
  • Organization: Institut fuer Meereskunde, Universitaet Hamburg
  • References: <7q9fpf$o34@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Drago Ganic wrote:
> 
> shouldn't
> 
> 1. + $MachineEpsilon  == 1.
> 
> be
> 
> False. I get True ?!!
> 


Hi Drago,

Equal[a,b] ("a==b") allows small differences between a and b. (See the
online help: "... Approximate numbers are considered equal if they
differ in at most their last eight binary digits (roughly their last two
decimal digits). ...")

However, you may use SameQ instead ("===").

Regards,
Harald

-- 
Harald Giese
Email: giese at dkrz.de
> NEUE TELEFON-NUMMER | NEW PHONE-NUMBER <
Phone: +49 (0)40 42838 5796; Fax: +49 (0)40 5605724
Institut fuer Meereskunde der Universitaet Hamburg
(Institute of Oceanography of the University of Hamburg)
Troplowitzstrasse 7, D-22529 Hamburg


  • Prev by Date: RE: Automatic Display in MatrixForm
  • Next by Date: Re: Help with Multiple Integrals
  • Previous by thread: $MachineEpsilon
  • Next by thread: How to use sign[] for symbolic operations?