[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

426.0. "Floating Point Accuracy" by TOOLS::STAN () Tue Jan 14 1986 15:17

From:	ASHBY::USENET  "USENET Newsgroup Distributor  09-Jan-1986 2107"  9-JAN-1986 21:13
To:	@[.net.math]NEWS.DIS
Subj:	USENET net.math newsgroup articles

Newsgroups: net.research,net.math,net.unix-wizards,net.bugs
Path: decwrl!decvax!linus!gatech!spaf
Subject: Technical Report of Possible Interest
Posted: 8 Jan 86 21:45:54 GMT
Organization: The Clouds Project, School of ICS, Georgia Tech
Xref: decwrl net.research:392 net.math:2432 net.unix-wizards:10037 net.bugs:708
 
Now available:
 
"A Report on the Accuracy of Some Floating Point Math Functions
 on Selected Computers," Technical Report GIT-ICS-85/06, 
 by Eugene Spafford and John Flaspohler, Georgia Tech
 
Abstract
--------
The Unix operating system and the C programming language have gained a
large following in recent years, especially in research and academic
settings.  C and Unix-like environments are available on a wide variety
of machines, from personal computers to mainframe computers; however,
few, if any, of these implementations provide accurate floating point
libraries, although users tend to believe they do.  This paper presents
the results of running a set of accuracy tests on more than a dozen
different computer systems under various versions of Unix and Unix-like
environments.
 
We believe the results presented in our report should be of major
concern to anyone using floating point library routines in their work
or research, including users of "packaged" software like statistics
systems and spreadsheets.  The 14 systems we tested for our report
included Vaxen running 4.2 BSD, a Pyramid 90x, an AT&T 3B20S, an AT&T
7300, a Sun 2, a Ridge, a Cyber and a Masscomp.  To summarize, we found
*no* system with an adequate set of functions.  More than a few of the
systems were 100% inaccurate in some of the tests.
 
------
To obtain a copy of this or of any Georgia Tech ICS technical
report, send a surface mail address and the name(s) of the report(s)
you would like.  If possible, please try to include the technical
report number(s) and author name(s).  Send your request via e-mail to:
 
CSNet:	Tech-Reports @ GATech
ARPA:	Tech-Reports%GATech.CSNet @ Relay.CS.NET
uucp:	...!{akgua,decvax,hplabs,ihnp4,linus,seismo}!gatech!tech-reports
 
or (preferably) by surface mail to:
	Ms. Karen Hutcheson
	Technical Reports
	School of Information and Computer Science
	Georgia Institute of Technology
	Atlanta, GA 30332-0280
 
There is no charge for single copies of technical reports still in
their first printings.  Requests received after these editions have
been exhausted, or requests for multiple copies, may be filled after
payment of a small copying fee; details will be mailed back if such a
fee is to be assessed.
-- 
Gene "the end is in sight" Spafford
The Clouds Project, School of ICS, Georgia Tech, Atlanta GA 30332-0280
CSNet:	Spaf @ GATech		ARPA:	Spaf%GATech.CSNet @ Relay.CS.NET
uucp:	...!{akgua,decvax,hplabs,ihnp4,linus,seismo,ulysses}!gatech!spaf
T.RTitleUserPersonal
Name
DateLines
426.1CODE68::THALLERWed Jan 15 1986 09:3727
A floating point number x on a computer can be represented as follows:
      __                     ___
      | d1     d2          dt  |   e
x= +  |  --- + --- + ... + --- |* b
   -  |   1      2           t |
      |  b      b           b  |
      --                     ---    

b = base of the computer system
t = number of digits
e = exponent and L<= e <= U

0<=di<=b-1 and dt is always suspect
                                     1-t           1-t
Machine precision can be defined as b    (ie. 1 + b   = 1)
If a number falls below this value, it is zero.

To look at a few interesting machines:           1-t
machine		b	t	L	U	b   
-----------------------------------------------------------------------
CRAY-1		2	48	-16384	8191	7.1ee-15
IBM 360/370	16	6	-64	63	9.5ee-7	single precision
IBM 360/370	16	14	-64	63	2.2ee-16 double precision
ILLIAC IV	2	48	-16384	16383	7.1ee-15
B5500		8	13	-51	77	1.5ee-11
SETUN		3	18	?	?	7.7e-9
MANICA II	65536	2 11/16	-7	7	7.3e-9
426.2METOO::YARBROUGHThu Jan 16 1986 10:446
>                                     1-t           1-t
>Machine precision can be defined as b    (ie. 1 + b   = 1)
>If a number falls below this value, it is zero.
>
This is not correct; b^(1-t) is typically 1e-15 while 1e-30 is representable
and not zero. You have confused roundoff (or truncation) with underflow.
426.3CORVUS::THALLERThu Jan 16 1986 11:363
re .2
What I was trying to show was machine precision, not machine accuracy.
There is a difference.