08-Jan-2022 10:04:02 square_monte_carlo_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test square_monte_carlo(). SQUARE_MONTE_CARLO_TEST01 Use SQUARE01_SAMPLE to estimate integrals along the interior of the unit square in 2D. N 1 X^2 Y^2 X^4 X^2Y^2 Y^4 X^6 1 1 0.663775 0.820459 0.440597 0.5446 0.673153 0.292457 2 1 0.208002 0.421885 0.0800813 0.0086287 0.348036 0.0319729 4 1 0.483848 0.601932 0.421639 0.279002 0.474797 0.38503 8 1 0.50494 0.426283 0.280282 0.216428 0.333293 0.16442 16 1 0.364566 0.234742 0.215728 0.0652409 0.108961 0.149851 32 1 0.296275 0.381422 0.173979 0.101298 0.239771 0.121106 64 1 0.321156 0.251065 0.181874 0.10713 0.139592 0.124905 128 1 0.301166 0.346371 0.162383 0.108703 0.205715 0.107548 256 1 0.330445 0.297784 0.192606 0.103689 0.16945 0.131914 512 1 0.332986 0.352494 0.2021 0.120966 0.211559 0.145303 1024 1 0.343659 0.346786 0.20938 0.115143 0.209067 0.151071 2048 1 0.32316 0.334023 0.190607 0.108082 0.198892 0.134635 4096 1 0.332529 0.332349 0.199797 0.111243 0.199784 0.142554 8192 1 0.330798 0.336818 0.19906 0.112083 0.202309 0.142719 16384 1 0.33444 0.328194 0.200307 0.109684 0.197365 0.142795 32768 1 0.334183 0.335165 0.201179 0.111465 0.201174 0.144052 65536 1 0.333788 0.333961 0.200637 0.111081 0.200238 0.14359 Exact 1 0.333333 0.333333 0.2 0.111111 0.2 0.142857 square_monte_carlo_test(): Normal end of execution. 08-Jan-2022 10:04:02