在你的程序里面直接使用CALL xxxx(子程序名)就可以编译通过了。
给出几个子程序的名字:
GAMMA (C302) HTML, PS
Gamma Function for Positive Argument
GAMMF (C303) HTML, PS
Gamma Function for Real Argument
ALGAMA (C304) HTML, PS
Logarithm of the Gamma Function
CGAMMA (C305) HTML, PS
Gamma Function for Complex Argument
CLGAMA (C306) HTML, PS
Logarithm of the Gamma Function for Complex Argument
CCLBES (C309) HTML, PS
Coulomb Wave, Bessel, and Spherical Bessel Functions for Complex Argument(s) and Order
BESJ0 (C312) HTML, PS
Bessel Functions J and Y of Orders Zero and One
BESI0 (C313) HTML, PS
Modified Bessel Functions I and K of Orders Zero and One
RRIZET (C315) HTML, PS
Riemann Zeta Function
RPSIPG (C316) HTML, PS
Psi (Digamma) and Polygamma Functions
CPSIPG (C317) HTML, PS
Psi (Digamma) and Polygamma Functions for Complex Argument
RELFUN (C318) HTML, PS
Jacobian Elliptic Functions sn, cn, dn
CELFUN (C320) HTML, PS
Jacobian Elliptic Functions sn, cn, dn for Complex Argument
CGPLG (C321) HTML, PS
Nielsen's Generalized Polylogarithm
RFRSIN (C322) HTML, PS
Fresnel Integrals
RFERDR (C323) HTML, PS
Fermi-Dirac Function
RATANI (C324) HTML, PS
Arctangent integral
RCLAUS (C326) HTML, PS
Clausen Function
BSIR4 (C327) HTML, PS
Modified Bessel Functions I and K of Order 1/4, 1/2 and 3/4
CWHITM (C328) HTML, PS
Whittaker Function M of Complex Argument and Complex Indices
RASLGF (C330) HTML, PS
(2)在VMS下面调用,呵呵,VMS操作系统已经有很多人不知道了。cern_root:[lib]为定义的cernlib文件路径
$ FOR xxx.FOR
$ LINK xxx,-
cern_root:[lib]mathlib/lib,-
cern_root:[lib]kernlib/lib
$RUN xxx