Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: spindler@oj.rsmas.miami.edu (todd spindler)
Subject: Possible Alpha f77 Problem
Date: 31 Jul 1994 19:11:05 GMT	[thread overview]
Message-ID: <31gt09$i8d@umigw.miami.edu> (raw)


I tried the following program on a Dec Alpha running OSF/1 1.3,
Dec Fortran T3.4-451:

      program bogus
      real aaa /-10./
      write(*,*) 'log(-10) =', log(aaa)
      end

The problem is that I don't get an error message for calculating the log
of a negative number.  Fortran simply returns the argument value, and 
prints the following line: 

log(-10) =  -10.00000

What gives?  Ultrix Fortran returns an error message, as does VMS Fortran.
Is this a bug or a feature?

-- 
Todd Spindler            |Rosenstiel School of Marine & Atmospheric Science
TSpindler@rsmas.miami.edu|Dept. of Meteorol & Phys Oceanography /U of Miami
---------------------------------------------------------------------------
Beyond the ken of mortal men, beneath the wind and waves, / Lies a land of
shells and sand, of chasms, crags, and caves, / Where coral castles climb
and soar, where swaying seaweeds grow, / While all around, without a sound,
the ocean currents flow...	     _Sign of the Seahorse_ by Graeme Base


             reply	other threads:[~1994-07-31 19:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-07-31 19:11 todd spindler [this message]
1994-08-01 15:43 ` Possible Alpha f77 Problem Steve Lionel
1994-08-01 18:47 ` Jim Brown
1994-08-02  6:08 ` Thomas Wright  Sysop. UHIBPD
1994-08-02 13:31   ` Craig Neth USG
1994-08-02 20:13     ` Thomas Wright  Sysop. UHIBPD
1994-08-02 21:38       ` Craig Neth USG
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