[1082] in Athena Bugs
A bug with FORTRAN on RT <--(please put the name of the program here)
daemon@ATHENA.MIT.EDU (yylu@ATHENA.MIT.EDU)
Thu Sep 29 17:33:12 1988
From: <yylu@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Date: Thu, 29 Sep 88 17:32:37 EDT
Program with which you had the problem: f77
Name of person who discovered the bug: Ya Yan Lu
Their MIT phone number: 3-3740
Their MIT address: Room 2-037
Their Athena Login ID: yylu
Name of consultant reporting bug: ?
------------------------------------------------------------------------
A brief synopsis of the problem:
"print" in fortran on RT dose not work right for complex numbers.
------------------------------------------------------------------------
Please describe the problem in detail (mention any necessary files or
commands that may be involved, on which machine the bug happened, and what
the program did that was wrong):
for a complex number z = x+i y
print*, z
gives: (x,x) instead of (x,y)
------------------------------------------------------------------------
Repeat by (please enter a set of commands which will allow us to
repeat the bug):
You must have a program test.f as follows:
complex z
read*, z
c you inout a complex such as (1,2)
print*, z
print*, abs(z)
c This calculates the absolute value
end
then complie it: f77 test.f (on RT)
then: a.out
------------------------------------------------------------------------
Fix (if you know what it is):