From: Phil Carmody <carmody@cpd.ntc.nokia.com>
To: axp-list@redhat.com
Subject: Re: Float Pt Precision
Date: Thu, 29 Jul 1999 15:32:24 +0100 (WET DST) [thread overview]
Message-ID: <Pine.GSO.4.10.9907291519480.7300-100000@mvagusta.uk.ntc.nokia.com> (raw)
In-Reply-To: <Pine.OSF.4.05.9907290935230.20906-100000@caesar.iplink.net>
On Thu, 29 Jul 1999, EXT Alvin Starr wrote:
>
> To my knowledge(Just checked the alpha referance manual) there is no
> 80 bit floating point format for the alpha. I am also not sure if the 80
> bit format is an IEEE standard like the 64 and 32 bit formats.
There is an IEEE standard for this 'extended' precision.
> > It seems that a lot of folks believe the FP is fast(er than the intel ),
> > but it seems to be at the cost of precision. Which for me would be of
> > some concern in massive numerical calculations.
>
> This is the argument between CISC and RISC. The intel FP is in some ways
> all singing and all dancing. The Alpha FP is more limited but is much
> faster. If you hit a special case Intel handles it in HW, on Alpha it
> becomes a SW trap.
>
> You should get the precision that you expect constantly and not depending
> on the order of the operands. A+B+C should allways be the "exact" same as
> B+C+A and not "just about" the same. If you cannot guarentee that your
> data will be presented in the same order all the time what would be the
> point of trying to compare the results.
Alas you're going to be disappointed, I wish it were true, but we're in a
finite universe.
For every architecture, where e = machine epsilon:
(-1 + 1) + e == e
but
(1 + e) - 1 == e
The a rule of thumb in these matters is to try to split the 'small'
data from the 'large' data, and handle all the 'small' data first before
it gets swamped by the 'large' data.
Oh - I was incorrect with my previous reference:
"What every computer scientist should know about floating point
arithmetic" is by Goldberg, not Kahan. However, it's 'in the style' of
similar things by Kahan.
Phil
--
Phil Carmody.
Not speaking for or on behalf of Nokia Telecommunications
The chief contribution of Protestantism to human thought is its massive proof
that God is a bore. -- Henry Louis Mencken (1880-1956) American editor & critic
next prev parent reply other threads:[~1999-07-29 14:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-29 13:24 Float Pt Precision Uncle George
1999-07-29 14:03 ` Alvin Starr
1999-07-29 14:32 ` Phil Carmody [this message]
1999-07-29 15:57 ` Michael J. Donahue
1999-07-29 18:51 ` Harvey J. Stein
1999-07-29 19:47 ` Wes Bauske
1999-07-29 21:05 ` Harvey J. Stein
1999-07-29 21:07 ` Michael J. Donahue
1999-07-29 14:17 ` Phil Carmody
1999-07-29 14:24 ` Christopher C Chimelis
1999-07-29 16:39 ` Wes Bauske
1999-07-29 23:42 ` Richard Henderson
1999-07-30 13:19 ` Harvey J. Stein
1999-07-30 14:38 ` Uncle George
1999-07-30 14:55 ` Uncle George
1999-07-30 11:18 ` Phil Carmody
1999-07-30 14:52 ` Uncle George
1999-07-30 15:31 ` Phil Carmody
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox