compute integral of f(x)
Examples
x<-seq(from=-3,to=3,length=33)
y<-round(exp(x),2)
plot(x=x,y=y)
catR::integrate.catR(x,y) # this will work with catR package installed
#> [1] 20.09437
integrate_cat(x=x,y=y)
#> [1] 20.09437
compute integral of f(x)
x<-seq(from=-3,to=3,length=33)
y<-round(exp(x),2)
plot(x=x,y=y)
catR::integrate.catR(x,y) # this will work with catR package installed
#> [1] 20.09437
integrate_cat(x=x,y=y)
#> [1] 20.09437