16-May-2025 10:50:15 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.274276 0.146816 0.150455 0.0805361 0.0431097 0.0825324 2 0.5 0.306245 0.118412 0.189826 0.0723703 0.0280538 0.119029 4 0.5 0.105476 0.0975954 0.0294004 0.0115032 0.0512796 0.0100507 8 0.5 0.112145 0.212056 0.042247 0.044888 0.107461 0.0194504 16 0.5 0.148149 0.175849 0.0706565 0.0379502 0.0854983 0.0450326 32 0.5 0.189137 0.137469 0.114101 0.0326099 0.0598351 0.0784338 64 0.5 0.18603 0.152906 0.10922 0.0372924 0.0742981 0.0751495 128 0.5 0.184389 0.138636 0.0967715 0.0395281 0.0579155 0.0595167 256 0.5 0.172829 0.158485 0.0913155 0.0430707 0.0736411 0.0577273 512 0.5 0.161488 0.168269 0.0791096 0.0426556 0.0824854 0.046895 1024 0.5 0.163044 0.165143 0.0793794 0.0402813 0.0839561 0.0461612 2048 0.5 0.16456 0.169795 0.0814001 0.0419116 0.0854637 0.0481165 4096 0.5 0.164135 0.167664 0.082122 0.0411192 0.0843329 0.0494334 8192 0.5 0.165799 0.16815 0.0829595 0.0416109 0.084685 0.0497833 16384 0.5 0.167398 0.166949 0.0834134 0.0419764 0.0835427 0.0497829 32768 0.5 0.167124 0.166063 0.0838778 0.0414669 0.0829779 0.0504731 65536 0.5 0.166207 0.166817 0.0829063 0.0416293 0.0833565 0.0496258 Exact 0.5 0.166667 0.166667 0.0833333 0.0416667 0.0833333 0.05 triangle01_monte_carlo_test(): Normal end of execution. 16-May-2025 10:50:22