Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Possible Alpha f77 Problem
@ 1994-07-31 19:11 todd spindler
  1994-08-01 15:43 ` Steve Lionel
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: todd spindler @ 1994-07-31 19:11 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1994-08-02 21:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-31 19:11 Possible Alpha f77 Problem todd spindler
1994-08-01 15:43 ` 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

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