已经把optmum library.lcg 拷贝到C:\guass9.0\lib 中,但运行如下错误的时候
cls;
new;
n=1000;
x=2+rndn(n,1);
start={5,5};
library optmum;
optset;
@the function forthe logliklihood function@
{arg,f,grad,retcode}=optmum(&func,start);
arg;
f;
grad;
proc func(xo);
local f,sigma,mu;
f=-(n/2)*ln(2*pi)-(n/2)*ln(sigma^2)-(1/(2*sigma^2))*sumc((x-mu).^2);
retp(f);
endp;
运行后出项如下错误:
Undefined symbols:
optset C:\Documents and Settings\Yanyun\My Documents\2\11(8)
optmum C:\Documents and Settings\Yanyun\My Documents\2\11(11)
求高手帮助!