The libraries are at /opt/nag/flsg620da/lib32/mips4/ and can be linked with
f90 test.f90 -lnag -L'/opt/nag/flsg620da/lib32/mips4/'for the version using complib.sgimath or with
f90 test.f90 -lscs -lnag_scs -L'/opt/nag/flsg620da/lib32/mips4/'for the version using the SCSL library. Please note that the NAG default on which library to use has changed as compared with Mark 19!
The documentation is available at several departments (including a complete set at NSC), it is system independent. You can also read it on the network directly from Oxford and also from the NSC web site if you first ask NSC for a password.
The example programs are easy to use through the nagexample script. We have modified the original script for our installation at NSC. On your own directory you give the command
/opt/nag/nagexample NAG_nameif you wish to use complib.sgimath or
/opt/nag/nagexample_2 NAG_nameif you wish to use the SCSL library.
Here NAG_name is the name of the routine you wish to test, for example s17aef for the Bessel function J0(x). The example program, together with its data file (if any), will be copied to your present directory, compiled, linked, and run.
The example program can quite often be used as the basis for the application program you are about to write.