请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
galilee 发表于 2011-3-14 03:32 应该是这样吧。 integ=function(f,n){ x=runif(n) # computes vector y = f(x) hatI=mean(f(x)) return(hatI) } # example of use integ(function(x)x^2+x+100,100) 你要做mc吧,应该是这样的。