02-Nov-2022 18:39:35 square_integrals_test(): MATLAB/Octave version 4.2.2 Test square_integrals(). square01_monomial_integral_test(): square01_monomial_integral() reports the integral of a monomial over the unit square. Compare exact and estimated integrals over the interior of the unit square in 2D. Number of sample points used is 4192 Ex Ey MC-Estimate Exact Error 6 0 0.139738 0.142857 3.12e-03 5 5 0.0269545 0.0277778 8.23e-04 2 3 0.08214 0.0833333 1.19e-03 2 2 0.109262 0.111111 1.85e-03 5 2 0.0539533 0.0555556 1.60e-03 6 2 0.0460343 0.047619 1.58e-03 2 3 0.08214 0.0833333 1.19e-03 7 2 0.0401055 0.0416667 1.56e-03 4 7 0.0245585 0.025 4.42e-04 0 7 0.124247 0.125 7.53e-04 2 4 0.0659107 0.0666667 7.56e-04 6 3 0.0344705 0.0357143 1.24e-03 5 4 0.0323459 0.0333333 9.87e-04 7 6 0.0170132 0.0178571 8.44e-04 4 1 0.0976038 0.1 2.40e-03 4 5 0.0326182 0.0333333 7.15e-04 5 7 0.0202462 0.0208333 5.87e-04 0 2 0.327669 0.333333 5.66e-03 4 1 0.0976038 0.1 2.40e-03 4 5 0.0326182 0.0333333 7.15e-04 squaresym_monomial_integral_test(): squaresym_monomial_integral() reports the integral of a monomial over the symmetric unit square. Compare exact and estimated integrals over the interior of the symmetric unit square in 2D. Number of sample points used is 4192 Ex Ey MC-Estimate Exact Error 5 3 0.0126611 0 1.27e-02 7 7 0.00549066 0 5.49e-03 3 7 0.00698227 0 6.98e-03 5 3 0.0126611 0 1.27e-02 6 4 0.117746 0.114286 3.46e-03 5 6 -0.0051469 0 5.15e-03 1 6 0.00211891 0 2.12e-03 2 4 0.273937 0.266667 7.27e-03 1 0 0.0209028 0 2.09e-02 7 1 0.0166702 0 1.67e-02 6 1 -0.00364682 0 3.65e-03 7 2 -0.0049882 0 4.99e-03 0 3 -0.0138825 0 1.39e-02 1 5 0.00756086 0 7.56e-03 2 7 -0.00108413 0 1.08e-03 6 6 0.0840122 0.0816327 2.38e-03 7 0 -0.0179847 0 1.80e-02 6 3 -0.000667624 0 6.68e-04 5 2 -0.00272846 0 2.73e-03 1 3 0.0132215 0 1.32e-02 square_integrals_test(): Normal end of execution. 02-Nov-2022 18:39:35