🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.bugs
1 messages
1 total messages Started by Bill Cornette Tue, 15 Dec 1992 17:05
f77 compiler bug?
#6
Author: Bill Cornette
Date: Tue, 15 Dec 1992 17:05
29 lines
1476 bytes
	I posted this to comp.sys.sgi but it appears to have disappeared with
the creation of these new groups, so here goes again.

	I seem to have encountered a compiler bug for SGI's f77 compiler.
I used the line of code


	QROT=DPROD(TREF,1./TEMP)**XK

where TREF=273.15, TEMP =304., and XK=1.50.  The resulting value for
QROT is identically 0.000000.  TREF, TEMP, and XK are declared REAL and
QROT is declared DOUBLE PRECISION.
	If I break the code up so

	
	QROT=DPROD(TREF,1./TEMP)
        QROT=QROT**XK

I get the right answer of QROT=0.85...

	This looks like a compiler bug to me.  Any comments?
---------------------------------------------------------------------------
---------------------------------------------------------------------------
William M. Cornette         Photon Research Associates, Inc.
(619) 455-9741              9393 Towne Centre Drive, Suite 200
FAX (619) 455-0658          San Diego, California  92121
wmc@photon.com
---------------------------------------------------------------------------
T.A.N.S.T.A.A.F.L.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads