08-Oct-2025 22:41:21 triangle01_monte_carlo_test(): MATLAB/Octave version 6.4.0 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.247688 0.204421 0.122698 0.101265 0.0835758 0.0607818 2 0.5 0.35785 0.01523 0.264514 0.0118187 0.000564362 0.201337 4 0.5 0.311317 0.0951571 0.225995 0.0346585 0.0463261 0.178989 8 0.5 0.182547 0.0897059 0.112187 0.0339349 0.0198941 0.0760261 16 0.5 0.140959 0.161093 0.0566655 0.0417572 0.0755868 0.0272454 32 0.5 0.191004 0.174273 0.100275 0.0445064 0.103538 0.0598641 64 0.5 0.161905 0.163135 0.0783378 0.0403196 0.0779643 0.0451964 128 0.5 0.174058 0.156133 0.0899555 0.0406322 0.0726289 0.0556291 256 0.5 0.175162 0.155374 0.0906052 0.0414797 0.0746993 0.0552095 512 0.5 0.166837 0.158408 0.0858781 0.0383504 0.078248 0.0533753 1024 0.5 0.166109 0.16933 0.0834363 0.0414283 0.0873188 0.0500685 2048 0.5 0.163259 0.167667 0.079858 0.0419967 0.0829157 0.0472193 4096 0.5 0.163293 0.167823 0.0807082 0.041048 0.0843749 0.047931 8192 0.5 0.167168 0.166413 0.0841948 0.0415424 0.0833463 0.0508828 16384 0.5 0.165658 0.168025 0.0824094 0.041794 0.084679 0.049238 32768 0.5 0.167304 0.167181 0.0836861 0.0419862 0.0835853 0.0501958 65536 0.5 0.166551 0.16657 0.0831723 0.0416463 0.0832637 0.0498988 Exact 0.5 0.166667 0.166667 0.0833333 0.0416667 0.0833333 0.05 triangle01_monte_carlo_test(): Normal end of execution. 08-Oct-2025 22:41:29