Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3549

Re: Bug 1+4/10

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Bug 1+4/10
Date 2011-07-07 11:43 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iv4645$f93$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 7/6/11 at 5:40 AM, slawek@host.pl (slawek) wrote:

>Let check

>In[1]:= 1.4 == 1 + 4/10 Out[1]= True

>In[2]:= a = SetPrecision[1.4, 30] Out[2]=
>1.39999999999999991118215802999

>In[3]:= b = SetPrecision[1 + 4/10, 30] Out[3]=
>1.40000000000000000000000000000

>No comment is needed.

The question is why do you think this is a bug? In one case, you
are starting with a machine precsion number and increasing the
precision, something that really isn't wise. In the other case
you start with an exact value and reduce the precision. Why
would you expect the same result?

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Bug  1+4/10 Bill Rowe <readnews@sbcglobal.net> - 2011-07-07 11:43 +0000

csiph-web