From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Very weird resolution issue. Bug ????? Seriously !!
Date: Wed, 04 Mar 2009 12:34:59 -0600
Organization: NNTP Server
Lines: 15
Message-ID: <gomhn6$91j$>
References: <goju5b$nv4$>
NNTP-Posting-Host: Zx/
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: Wed, 4 Mar 2009 18:36:26 +0000 (UTC)
X-Notice: Filtered by postfilter v. 0.7.7
Cancel-Lock: sha1:QLRjm5Si0SRUkyy94YiEIibE47o=
User-Agent: Thunderbird (Windows/20080914)
Xref: comp.soft-sys.matlab:522530

Sung Soo Kim wrote:
> % Run the following code. It must produce '1' as an answer.
> % In R14SP3 it works fine. (It spit out '1')
> % In R2008b, it doesn't work. (It spit out '0')
> ...floating point computation precision/optimization/etc. example
> elided for brevity...

In addition to the comments of Roger and Peter, I'd point you to


Widely-recommended reading, "What Every Computer Scientist Should Know 
About Floating-Point Arithmetic"