MathGroup Archive 1999

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

Search the Archive

Re: $MachineEpsilon


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?