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


Groups > comp.arch > #32462

Re: UNUM study and research

From nmm@wheeler.UUCP (Nick Maclaren)
Newsgroups comp.arch
Subject Re: UNUM study and research
Date 2016-01-03 10:39 +0000
Organization Old Fogies Society
Message-ID <n6ato5$22r$1@dont-email.me> (permalink)
References <439f2f1d-6e26-4550-ae75-b36a99dfb7a2@googlegroups.com> <c95c434f-4f1d-479f-a02d-b62e2060abbb@googlegroups.com> <n68n5j$7m1$1@dont-email.me> <a8729f26-0456-4754-a1e8-ec64b1f105e5@googlegroups.com>

Show all headers | View raw


In article <a8729f26-0456-4754-a1e8-ec64b1f105e5@googlegroups.com>,
Quadibloc  <jsavard@ecn.ab.ca> wrote:
>
>Although I suspect you're mostly right... a numeric format that behaves more 
>like idealized real numbers won't just cover up errors, it will change the 
>situation so that certain practices no longer result in error.
>
>Thus, a sequence like:
>
>a = b + c
>p = a + x
>q = (p - c) - b
>
>would now yield q equal to x even if b and c were both much bigger than x.

That is also true of IEEE 754, incidentally.  In many floating-point
formats, x+x+x is not the same as 3*x, but IEEE 754 ensures that until
x+x+x+x+x+x+x and 7*x.  The precision extension techniques are ancient,
but help only when (a) the loss occurs in a few individual operations
and (b) those are identifiable.  They have been proposed, and tried,
many times, and have never worked well enough to be worth bothering
with except in a few computational kernels.

You can see that easily enough if you take a realistically complex
calculation and try to work out what precision you need, where.
People designing special functions (including me) have done that
for half a century and more - which is another reason I am not
impressed by the UNUM claims.  And then move on to a Newton-Raphson
solver ....

The simple fact is that either you allow the storage precision to
grow super-exponentially or you will get rounding errors.  And, as
every competent numerical analyst knows, these problems are
inherent in the basic mathematics and therefore cannot be removed
by ANY bounded representation or arithmetic variation.  Even if UNUMs
are numerically better than conventional floating-point, they simply
can't overcome the basic mathematical limitations.

That also applies to 'tracking precision' and interval arithmetic,
which is why both have been proposed, and tried, many times and
have never never worked well enough to be worth bothering with
except in a few special cases.  On that matter, all of the methods
of flagging the last 'correct' bit or digit do lead to much faster
range expansion than interval arithmetic, as Jan Coombs says but,
in practice, even interval arithmetic fails horribly when applied
to most applications.

The history of computer arithmetic is solid with people proposing
gimmicks as solutions to known problems, making ridiculous claims,
and being shown up for the snake oil they are - in almost every
case because they didn't understand where the real problems lie.
A few, like IEEE signed zeroes and division by zero, solve the
problems for one isolated domain and make them much worse for most
others.

All of IEEE decimal, interval arithmetic, significance tracking,
and UNUMs are like that.  None are without any merit, for a few,
specialised requirements, but none are of any real help in the vast
majority of programs.  If and when a precise specification of the
UNUM format and arithmetic rules is published, we shall be able to
judge whether it is PURE snake oil, or has a kernel of merit; but
there is simply no way that it can deliver on the claims people
are making for it.


Regards,
Nick Maclaren.

Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-31 17:32 -0800
  Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-01 03:07 +0000
    Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-31 19:34 -0800
      Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-01 14:26 +0000
        Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-01 07:40 -0800
          Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-01 17:35 +0000
            Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-01 13:02 -0800
  Re: UNUM study and research MitchAlsup <MitchAlsup@aol.com> - 2016-01-01 09:37 -0800
    Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-01 12:45 -0800
  Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-01 10:04 -0800
    Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-01 10:12 -0800
      Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 14:34 +0000
        Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 07:29 -0800
          Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 16:36 +0000
            Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 10:01 -0800
              Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 18:50 +0000
                Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 11:18 -0800
                Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 20:09 +0000
                Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 12:29 -0800
                Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 20:44 +0000
                Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 12:55 -0800
                Re: UNUM study and research George Neuner <gneuner2@comcast.net> - 2016-01-03 04:42 -0500
                Re: UNUM study and research already5chosen@yahoo.com - 2016-01-03 03:01 -0800
                Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-03 12:46 +0000
                Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-03 09:47 -0800
                Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 14:46 -0800
          Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 15:26 -0800
            Re: UNUM study and research Ivan Godard <ivan@millcomputing.com> - 2016-01-02 17:03 -0800
              Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 17:58 -0800
                Re: UNUM study and research Ivan Godard <ivan@millcomputing.com> - 2016-01-02 18:13 -0800
                Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 20:25 -0800
                Re: UNUM study and research Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-03 19:26 +0100
                Re: UNUM study and research already5chosen@yahoo.com - 2016-01-03 02:55 -0800
            Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 18:01 -0800
              Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 18:06 -0800
                Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 20:30 -0800
          Re: UNUM study and research Erik Trulsson <erikt@Update.UU.SE> - 2016-01-08 08:35 +0000
            Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-08 05:34 -0800
              Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-08 07:57 -0800
                Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-08 08:01 -0800
                Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-08 08:07 -0800
        Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-02 22:15 +0000
        Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 14:59 -0800
          Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-03 10:39 +0000
            Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-03 05:17 -0800
            Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-03 05:19 -0800
              Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-03 14:56 +0000
                Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-03 08:21 -0800
        Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-03 09:24 +0000

csiph-web