Category : Files from Magazines
Archive   : PCTJ8706.ZIP
Filename : PERFORM.F77

 
Output of file : PERFORM.F77 contained in archive : PCTJ8706.ZIP
C PERFORM - A FORTRAN Benchmark
INTEGER I
DOUBLE PRECISION A, B, C, D
C
WRITE(6,1000)
D = 0.0
DO 100 I = 1, 10000
C
C Implicit conversion. Use of intrinsic function FLOAT
C available in ANSI X3.9-1978 but not recommended.
A=I
C
C Generic names used for intrinsic functions. Function
C type is automatically set to that of the argument.
C Note that TAN(x) = SIN(X)/COS(X)
C
B = ATAN(LOG(A))
C = A - EXP(SIN(B)/COS(B))
D = D + C * C
100 CONTINUE
WRITE(6,1010) D
1000 FORMAT(2X,'Double Precision Benchmark')
1010 FORMAT(2X,'ERROR = ',1E9.3)
END

  3 Responses to “Category : Files from Magazines
Archive   : PCTJ8706.ZIP
Filename : PERFORM.F77

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/