comp.lang.ada
 help / color / mirror / Atom feed
From: hrubin@mean.stat.purdue.edu (Herman Rubin)
Subject: Re: fixed point vs floating point
Date: 1997/11/24
Date: 1997-11-24T00:00:00+00:00	[thread overview]
Message-ID: <65c58j$1302@mean.stat.purdue.edu> (raw)
In-Reply-To: dewar.880302541@merv


In article <dewar.880302541@merv>, Robert Dewar <dewar@merv.cs.nyu.edu> wrote:
>Matthew says

><<Remember that thread a few months back about floating point comparison?  As
>Robert reminded us, you have to know what you're doing when you use
>floating point arithmetic.  I was trying to avoid floating point types,
>because I'm not a numerical analyst, and don't want to just *hope* my
>floating point calculations produce a correct result.  I want to *know*
>they're correct.  My error analysis is simpler if use a fixed point type,
>right?

>If my abstraction calls for a real type having an absolute error and not a
>relative error, then clearly a fixed point type is called for, even if it's
>less efficient, right?  Isn't it always true that we should code for
>correctness first, by using a type that directly models the abstraction,
>and then optimize only if necessary?  Are you making an exception to this
>rule for fixed point types?>>

In principle, there is no such thing as floating point arithmetic.
Fixed point arithmetic can be done to arbitrary precision; to do
floating arithmetic to much more than what is provided, it is 
necessary to emulating the floating in fixed, and to do the quite
clumsy fixed point in floating.

That fixed point arithmetic is so slow on computers is due to the fact
that the hardware manufacturers, partly influenced by those gurus who
do not see the uses of fixed point, have combined several fixed point
instructions to produce floating point in such a way that it is very
difficult to use it for anything else.  It would not be difficult for
the hardware to allow the fixed point part of the floating unit to be
available to the user, and it would allow considerable speedup.
-- 
This address is for information only.  I do not claim that these views
are those of the Statistics Department or of Purdue University.
Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907-1399
hrubin@stat.purdue.edu         Phone: (765)494-6054   FAX: (765)494-0558




  reply	other threads:[~1997-11-24  0:00 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-22  0:00 fixed point vs floating point Matthew Heaney
1997-11-22  0:00 ` Tucker Taft
1997-11-22  0:00   ` Robert Dewar
1997-11-22  0:00     ` Matthew Heaney
1997-11-23  0:00 ` Geert Bosch
1997-11-23  0:00   ` Matthew Heaney
1997-11-23  0:00     ` Robert Dewar
1997-11-24  0:00       ` Herman Rubin [this message]
1997-11-24  0:00         ` Robert Dewar
1997-11-25  0:00           ` Joe Gwinn
1997-11-25  0:00             ` Matthew Heaney
1997-11-25  0:00             ` Robert Dewar
1997-11-25  0:00               ` Joe Gwinn
1997-11-25  0:00                 ` Robert Dewar
1997-11-26  0:00                   ` Joe Gwinn
1997-11-26  0:00                     ` Robert Dewar
1997-12-01  0:00                       ` Joe Gwinn
1997-12-01  0:00                         ` Robert Dewar
1997-12-01  0:00                           ` Joe Gwinn
1997-12-03  0:00                           ` robin
1997-11-26  0:00             ` William A Whitaker
1997-11-24  0:00     ` Geert Bosch
1997-11-23  0:00   ` Tom Moran
1997-11-25  0:00     ` John A. Limpert
1997-11-25  0:00       ` Robert Dewar
1997-11-25  0:00       ` Robert Dewar
1997-11-24  0:00 ` Vince Del Vecchio
1997-11-24  0:00 ` Vince Del Vecchio
1997-12-03  0:00 ` robin
  -- strict thread matches above, loose matches on Subject: below --
2011-09-29 10:25 RasikaSrinivasan@gmail.com
2011-09-29 10:49 ` AdaMagica
2011-09-29 13:38   ` Martin
2011-09-30 10:17 ` Stephen Leake
2011-09-30 16:25   ` tmoran
2011-09-30 16:52     ` Dmitry A. Kazakov
2011-10-01 11:09     ` Stephen Leake
2011-09-30 19:26   ` tmoran
2011-09-30 22:31   ` tmoran
2011-10-01 13:37   ` RasikaSrinivasan@gmail.com
2011-10-02 14:19     ` Stephen Leake
1997-12-02  0:00 Robert Dewar
1997-12-02  0:00 ` Joe Gwinn
1997-12-02  0:00   ` Robert Dewar
1997-12-02  0:00     ` Matthew Heaney
1997-12-03  0:00       ` Robert Dewar
1997-12-03  0:00     ` robin
1997-12-03  0:00       ` Robert Dewar
1997-12-03  0:00     ` Shmuel (Seymour J.) Metz
1997-12-03  0:00       ` Robert Dewar
1997-12-03  0:00       ` Robert Dewar
1997-12-03  0:00       ` Matthew Heaney
1997-12-04  0:00         ` Shmuel (Seymour J.) Metz
1997-12-04  0:00           ` Robert Dewar
1997-12-02  0:00   ` Ken Garlington
1997-12-03  0:00     ` Joe Gwinn
1997-12-04  0:00       ` Robert Dewar
1997-12-04  0:00         ` Shmuel (Seymour J.) Metz
1997-12-03  0:00 ` robin
1997-11-28  0:00 tmoran
1997-11-28  0:00 ` Robert Dewar
1997-11-27  0:00 tmoran
1997-11-27  0:00 ` Robert Dewar
1997-11-29  0:00   ` Tarjei T. Jensen
     [not found] <9711221603.AA03295@nile.gnat.com>
1997-11-22  0:00 ` Ken Garlington
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox