求x平方在区间(0,1)的定积分

integrand<-function(x){x^2}

integrate(integrand,0,1)

结果为1/3=0.3333

转载于:https://my.oschina.net/u/1272414/blog/164394