标签: r
F<-function(alp,lam){ dum1=((1/lam)*(digamma(alp+1)-digamma(1))) dum2=((1/lam^2)*(psigamma(1)-psigamma(alp+1))) return(c(dum1-5,dum2-1.5)) } x<-fsolve(F,c(0,2))