Re: Precision of floating point multiply

From: G.F. Thomas (gfthomas_at_sympatico.ca)
Date: 10/01/03


Date: Wed, 1 Oct 2003 13:29:26 -0400


"Brooks Moses" <bmoses-usenet@cits1.stanford.edu> wrote in message
news:3F7747E8.A97E8C67@cits1.stanford.edu...
[...]
> Ken Plotkin wrote:
> > On Sun, 28 Sep 2003 11:37:49 -0700, Brooks Moses
> > <bmoses-usenet@cits1.stanford.edu> wrote:
> > >This is not the meaning of "significant digits" that I'm familiar
with,
> > >and which has been used in all of my engineering classes....
> > >"Significant digits" means the number of digits of meaningful
> > >information (i.e., information that corresponds to reality) that
the
> > >result contains.
> > [snip]
> >
> > Counting the decimal digits isn't necessarily a measure of
precision.
> > Consider 1.001 vs .999. One is four digits, while one is three.
>
> Indeed; thus the common habit of not counting a leading 1 as a
> significant digit, so they're both at three significant digits. Of
> course, this only shifts the problem off to 2.001 vs. 1.999, so it's
not
> much of a solution!
>
> > Throw in issues of significant figures vs number of decimal
places,
> > addition/subtraction vs multiplication vs division, multiple steps
in
> > a complex algorithm, etc., and Gordon's point about error analysis
> > becomes very valuable.
>
> Oh, indeed. I was mainly complaining about the (in my opinion
> incorrect) use of "significant digits" in his explanation, and
> particularly the misuse of counting four of them in 0.0242. I agree
> that the point itself was quite valuable, and I probably should have
> said so more explicitly.
>
> - Brooks

Look into the important role of 'guard digits' in fp arithmetic.

-- 
Ciao,
Gerry T.
______
"Competent engineers rightly distrust all numerical computations and
seek corroboration from alternative numerical methods, from scale
models, from prototypes, from experience... ."  W.V. Kahan.


Relevant Pages

  • Re: Euler Top 1000
    ... Not for problem 196 and all other problems where counting ... primes or sums of primes are involved. ... My guess is that none of these need even double precision on ... The problem of summing the digits of a^b is the worst problem ...
    (comp.lang.forth)
  • [SUMMARY] Probable Iterations (#141)
    ... Now it starts to look like counting, ... But if we drop the digits on both sides by one: ... The timesiterator does the actual count. ... puts if MODE ...
    (comp.lang.ruby)
  • Re: Top mathematician cracks any lottery
    ... frequency counting is looking at a set of numbers ...daily number 4 digits ... As long as the number selection is truly "random" I don't see how this ...
    (alt.vacation.las-vegas)
  • Re: http://mutt-ng.berlios.de/
    ... Because counting the number of digits in a decimal representation of ... an integer is a quick way of obtaining an approximate log_10 of that ...
    (comp.mail.mutt)
  • Re: Price Data Formatting
    ... data will be of the correct format. ... note that MOST have 4 digits following the decimal point. ... digits MOST of the data items used. ... MAXIMUM number of decimal digits in the data list. ...
    (microsoft.public.vb.general.discussion)

Loading