08-Oct-2025 14:09:11 pyramid_monte_carlo_test(): MATLAB/Octave version 6.4.0 Test pyramid_monte_carlo():. pyramid_monte_carlo_test01(): pyramid01_sample() estimates integrals over the interior of the unit pyramid in 3D. N 1 Z X^2 Y^2 Z^2 X^2Z Y^2Z Z^3 X^2Y^2 X^2Z^2 1 1.33333 0.728364 0.0523217 0.208254 0.397886 0.0285819 0.113763 0.217354 0.00817213 0.0156135 2 1.33333 0.250863 0.294138 0.361451 0.0848215 0.0262011 0.0839397 0.030116 0.0673959 0.00774668 4 1.33333 0.334627 0.294708 0.520745 0.118025 0.0480707 0.0834462 0.0456225 0.150961 0.0140244 8 1.33333 0.24437 0.284081 0.218204 0.0859145 0.0403939 0.0402315 0.0356222 0.0471455 0.0115629 16 1.33333 0.313219 0.215197 0.323579 0.130088 0.0352919 0.0360567 0.0723133 0.0654308 0.00950422 32 1.33333 0.404008 0.213851 0.208246 0.193193 0.0387315 0.0427033 0.111475 0.0411892 0.0115028 64 1.33333 0.281392 0.287 0.33752 0.109414 0.035612 0.0411099 0.0602079 0.111099 0.0079004 128 1.33333 0.383236 0.235912 0.247619 0.172201 0.0432899 0.0429593 0.0951573 0.0605837 0.0138649 256 1.33333 0.34425 0.285023 0.273389 0.141764 0.0461496 0.0451432 0.0727915 0.0765578 0.0128517 512 1.33333 0.32118 0.281717 0.259715 0.126298 0.0470078 0.0429401 0.0633069 0.0616993 0.0132332 1024 1.33333 0.341387 0.254078 0.262465 0.135258 0.0447676 0.0460937 0.0664542 0.0580993 0.0131704 2048 1.33333 0.336113 0.277138 0.253931 0.135392 0.0456472 0.0434288 0.0673545 0.0624934 0.0132661 4096 1.33333 0.341589 0.267087 0.26687 0.138208 0.0461831 0.0448416 0.0693578 0.0634811 0.0136094 8192 1.33333 0.330612 0.267179 0.266897 0.13114 0.0442934 0.0440676 0.0647436 0.0640657 0.012751 16384 1.33333 0.336968 0.264384 0.263698 0.135168 0.0450583 0.0446063 0.0675929 0.0621619 0.0130322 32768 1.33333 0.334478 0.266571 0.264408 0.133661 0.0447579 0.0444374 0.066674 0.0625495 0.0128561 65536 1.33333 0.333534 0.265658 0.26769 0.133769 0.0441882 0.0446736 0.0671789 0.0635725 0.0125797 Exact 1.33333 0.333333 0.266667 0.266667 0.133333 0.0444444 0.0444444 0.0666667 0.0634921 0.0126984 pyramid_monte_carlo_test(): Normal end of execution. 08-Oct-2025 14:09:11