From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e7db62ae55f7ab54,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,e7db62ae55f7ab54,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-31 23:36:04 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!wupost!news.miami.edu!oj.rsmas.miami.edu!spindler From: spindler@oj.rsmas.miami.edu (todd spindler) Newsgroups: comp.unix.osf.osf1,comp.sys.dec Subject: Possible Alpha f77 Problem Date: 31 Jul 1994 19:11:05 GMT Organization: Rosenstiel School of Marine and Atmospheric Science Distribution: world Message-ID: <31gt09$i8d@umigw.miami.edu> Reply-To: TSpindler@rsmas.miami.edu NNTP-Posting-Host: oj.rsmas.miami.edu Xref: bga.com comp.unix.osf.osf1:2809 comp.sys.dec:4733 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