Use of the IMSL Fortran Libraries at GMU ---------------------------------------- The IMSL Fortran Libraries are available on osf1. The library is /usr/local/imsl_2.0/libimsl.a Because the OSF compilier is f90 (instead of f77), to compile and link a main program, say "foo.f", the statement is f90 -o foo.exe foo.f /usr/local/imsl_2.0/libimsl.a Online help is available. The command is /usr/local/bin/imsl.idf Here are a couple of examples: To generate 5 Gaussian random numbers: integer iseed, nr real r(5) iseed = 123457 call rnset (iseed) call rnnor(nr, r) print *, 'The random Gaussians are ', r end To solve the linear system 3x_1 +2x_2 + x_3 & = & 11 x_1 +4x_2 - x_3 & = & 3 x_1 - x_2 + 2x_3 & = & 7 integer n, lda, ipath real a(3,3), b(3), x(3) data a / 3.0, 1.0, 1.0, & 2.0, 4.0, -1.0, & 1.0, -1.0, 2.0/ data b /11.0, 3.0, 7.0/ n = 3 lda = 3 ipath = 1 call lslrg (n, a, lda, b, ipath, x) print *, 'The solution is ', x end