19 April 2020 09:21:22 AM SQUARE_INTEGRALS_TEST C++ version Test the SQUARE_INTEGRALS library. SQUARE01_MONOMIAL_INTEGRAL_TEST SQUARE01_MONOMIAL_INTEGRAL returns the exact integral of a monomial over the interior of the unit square in 2D. Compare exact and estimated values. Number of sample points is 4192 Ex Ey MC-Estimate Exact Error 5 3 0.0407015 0.0416667 0.000965144 0 3 0.24772 0.25 0.00228033 3 3 0.0617648 0.0625 0.000735171 7 2 0.0409558 0.0416667 0.000710881 3 6 0.0347451 0.0357143 0.000969201 3 4 0.0490791 0.05 0.000920888 5 3 0.0407015 0.0416667 0.000965144 4 0 0.205635 0.2 0.00563534 2 7 0.0408387 0.0416667 0.000827963 6 7 0.0167397 0.0178571 0.00111744 1 3 0.124093 0.125 0.000907471 2 4 0.065838 0.0666667 0.000828632 4 1 0.10114 0.1 0.00114004 0 3 0.24772 0.25 0.00228033 7 6 0.0166817 0.0178571 0.00117544 2 1 0.167784 0.166667 0.00111755 7 1 0.0630248 0.0625 0.000524751 2 5 0.0546923 0.0555556 0.000863221 6 1 0.0721531 0.0714286 0.000724497 5 0 0.172018 0.166667 0.00535108 SQUARESYM_MONOMIAL_INTEGRAL_TEST SQUARESYM_MONOMIAL_INTEGRAL returns the exact integral of a monomial over the interior of the symmetric unit square in 2D. Compare exact and estimated values. Number of sample points is 4192 Ex Ey MC-Estimate Exact Error 5 3 -0.000604423 0 0.000604423 0 3 -0.00170693 0 0.00170693 3 3 -0.00135924 0 0.00135924 7 2 -0.00717992 0 0.00717992 3 6 -0.00633502 0 0.00633502 3 4 -0.00632412 0 0.00632412 5 3 -0.000604423 0 0.000604423 4 0 0.830138 0.8 0.0301382 2 7 -0.00639541 0 0.00639541 6 7 -0.0059758 0 0.0059758 1 3 -0.000682644 0 0.000682644 2 4 0.265918 0.266667 0.000749041 4 1 -0.0244943 0 0.0244943 0 3 -0.00170693 0 0.00170693 7 6 -0.00531321 0 0.00531321 2 1 -0.025342 0 0.025342 7 1 -0.00227777 0 0.00227777 2 5 -0.00856214 0 0.00856214 6 1 -0.022297 0 0.022297 5 0 -0.000949718 0 0.000949718 SQUARE_INTEGRALS_TEST Normal end of execution. 19 April 2020 09:21:22 AM