MathGroup Archive 2005

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

Search the Archive

Re: Adding two numbers of high precision results in a number of low precision??


"Kees van Schaik" wrote

>> Precisie bTemp[3,0,0] = 389.685
>> Precisie Q[3,1] = 390.729
>> Precisie bTemp[3,0,1] =53.8232
>
>
>Now the first one makes sense, but the last one, how is it possible that
>if I add two numbers of precision ca. 390 I get something of precision
>53 back?

Cancellation of significant digits?
*If* the two numbers have different signs, this could happen.
For example:
a=+2.1234567895
b=-2.1234567891

a+b=0.4*10^-10

The first two numbers have a precision of 11 digits. Their sum has a
precision of 1.

cheers,
Peltio

PS
To see this in Mathematica, you should experiment with numbers with more then 16
digits, lest not to fall in the machine precision Maelstrom.
a = +2.3333333333333333335;
b = -2.333333333333331245;
Precision[a]
Precision[b]
Precision[a + b]


  • Prev by Date: Re: calculate de Jong function
  • Next by Date: Re: another image problem
  • Previous by thread: Re: Adding two numbers of high precision results in a number of low precision??
  • Next by thread: Re: FilledPlot: Curves->Back option and Epilog not working?