home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!purdue!mentor.cc.purdue.edu!pop.stat.purdue.edu!hrubin
- From: hrubin@pop.stat.purdue.edu (Herman Rubin)
- Newsgroups: comp.programming
- Subject: Re: floating point routines with double precision
- Message-ID: <55036@mentor.cc.purdue.edu>
- Date: 24 Jul 92 20:48:00 GMT
- References: <1992Jul22.120724.3466@druid.uucp> <54944@mentor.cc.purdue.edu> <6760@charon.cwi.nl>
- Sender: news@mentor.cc.purdue.edu
- Organization: Purdue University Statistics Department
- Lines: 38
-
- In article <6760@charon.cwi.nl> dik@cwi.nl (Dik T. Winter) writes:
- >In article <54944@mentor.cc.purdue.edu> hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
-
- ......................
-
- > > Now I was answering the question assuming that more than the designed
- > > precision is needed. The routines are not difficult for a human to
- > > design, but almost hopeless for a compiler. Anyone who writes such
- > > a procedure for a machine which has forced normalization will curse
- > > the designers.
- >Well, as the machine of the original requestor has no floating-point
- >hardware, this point is moot. Moreover, it is not the compiler that
- >suddenly comes up with some code to do double-precision, it is put in
- >the compiler by the compiler-writer, e.g. hand-coded. He may have done
- >a poor job of course (as some code sequences for the 205 show, but that one
- >had an extremely bad Fortran compiler; past tense because the one I used
- >has been decommissioned more than a year ago).
-
- The 205 is much easier for the purpose of increasing precision because
- the floating-point arithmetic is not forced to be normalized. The Crays
- are much worse here, although they are not forced normalized for
- multiplication, but because only the most significant part of the
- product can be obtained.
-
- If we want everything to be in the compiler, the compiler will be very
- large indeed. One of the points I wish to stress is that, no matter
- how much is put in the compiler, much more, even from the standpoint
- of practicality, will be omitted. And as knowledge progresses, the
- variety of things to consider increases.
-
- With the present languages, it is already necessary to consider
- alternate codings to achieve the same purpose for such simple
- things as adding two vectors.
- --
- Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907-1399
- Phone: (317)494-6054
- hrubin@pop.stat.purdue.edu (Internet, bitnet)
- {purdue,pur-ee}!pop.stat!hrubin(UUCP)
-