Mon Mar 9 19:49:39 2020 mcint2_test R version 3.4.4 (2018-03-15) mcint2 estimates an integral over a rectangle using a Monte Carlo approach. f(x) = x^2 * y mcint2 ( f, c(0,1), c(0,0), m = 1000 ) = 0.1678968 mcint2 ( f, c(0,1), c(0,0), m = 10000 ) = 0.1651541 mcint2 ( f, c(0,1), c(0,0), m = 1e+05 ) = 0.1671868 mcint2 ( f, c(0,1), c(0,0), m = 1e+06 ) = 0.1663329 mcint2_test Normal end of execution. Mon Mar 9 19:49:39 2020