08-Nov-2022 15:29:12 triangle01_monte_carlo_test(): MATLAB/Octave version 4.2.2 Test triangle01_monte_carlo(). triangle01_monte_carlo_test01(): triangle01_sample() computes a Monte Carlo estimate of an integral over the interior of the unit triangle in 2D. N 1 X Y X^2 XY Y^2 X^3 1 0.5 0.148018 0.120049 0.0438186 0.0355388 0.0288235 0.0129719 2 0.5 0.0929266 0.123272 0.0208892 0.0129814 0.0576366 0.00522732 4 0.5 0.129967 0.194133 0.03605 0.0484238 0.109238 0.0104989 8 0.5 0.221944 0.162555 0.117814 0.0562666 0.0824754 0.0702725 16 0.5 0.119954 0.187533 0.0506113 0.0419034 0.0911425 0.0281446 32 0.5 0.195721 0.131096 0.105225 0.0398321 0.0565251 0.0664482 64 0.5 0.156471 0.162347 0.0745251 0.034631 0.0829158 0.0436828 128 0.5 0.17894 0.164124 0.0968256 0.0415073 0.0840235 0.0622715 256 0.5 0.164276 0.164405 0.0825007 0.0413862 0.0802926 0.0498565 512 0.5 0.170938 0.16815 0.0873298 0.0427948 0.0845556 0.0533978 1024 0.5 0.162171 0.165997 0.0806918 0.0398905 0.0836437 0.0487255 2048 0.5 0.164303 0.163385 0.0807029 0.0416338 0.0797661 0.0475226 4096 0.5 0.165672 0.165699 0.0819403 0.0419978 0.0818759 0.0486155 8192 0.5 0.16892 0.16613 0.085677 0.0419585 0.0828473 0.0521493 16384 0.5 0.165304 0.166327 0.0825588 0.0411963 0.0827877 0.0496425 32768 0.5 0.166574 0.166196 0.0829893 0.0416888 0.0828919 0.0496069 65536 0.5 0.166405 0.166767 0.0830896 0.04172 0.0833403 0.049772 Exact 0.5 0.166667 0.166667 0.0833333 0.0416667 0.0833333 0.05 triangle01_monte_carlo_test(): Normal end of execution. 08-Nov-2022 15:29:18