08-Jan-2022 09:03:16 pyramid_integrals_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test pyramid_integrals(). PYRAMID_INTEGRALS_TEST01 Compare exact and estimated integrals over the unit pyramid in 3D. Number of sample points used is 500000 E1 E2 E3 MC-Estimate Exact Error 0 0 0 1.33333 1.33333 0.00e+00 2 0 0 0.267012 0.266667 3.45e-04 4 0 0 0.114452 0.114286 1.66e-04 6 0 0 0.0635256 0.0634921 3.35e-05 0 2 0 0.266562 0.266667 1.05e-04 2 2 0 0.0636529 0.0634921 1.61e-04 4 2 0 0.0297327 0.0296296 1.03e-04 0 4 0 0.11405 0.114286 2.35e-04 2 4 0 0.0297114 0.0296296 8.18e-05 0 6 0 0.0632231 0.0634921 2.69e-04 0 0 1 0.333536 0.333333 2.02e-04 2 0 1 0.0445317 0.0444444 8.73e-05 4 0 1 0.0143403 0.0142857 5.46e-05 0 2 1 0.044523 0.0444444 7.86e-05 2 2 1 0.00797033 0.00793651 3.38e-05 0 4 1 0.0143185 0.0142857 3.28e-05 0 0 2 0.133471 0.133333 1.37e-04 2 0 2 0.012706 0.0126984 7.59e-06 4 0 2 0.00318353 0.0031746 8.93e-06 0 2 2 0.0127136 0.0126984 1.51e-05 2 2 2 0.00176855 0.00176367 4.88e-06 0 4 2 0.00318235 0.0031746 7.75e-06 0 0 3 0.0668193 0.0666667 1.53e-04 2 0 3 0.00476043 0.0047619 1.47e-06 0 2 3 0.00476508 0.0047619 3.17e-06 0 0 4 0.0382465 0.0380952 1.51e-04 2 0 4 0.00211534 0.0021164 1.06e-06 0 2 4 0.00211755 0.0021164 1.14e-06 0 0 5 0.0239457 0.0238095 1.36e-04 0 0 6 0.0159895 0.015873 1.17e-04 PYRAMID_INTEGRALS_TEST02 Print sample points in the unit pyramid in 3D. Unit pyramid points Row: 1 2 3 Col 1: 0.0699054 0.393449 0.490214 2: -0.844013 -0.242851 0.0712083 3: -0.0622037 0.480191 0.312493 4: -0.852003 -0.312579 0.0916315 5: -0.0737905 -0.0968322 0.127335 6: -0.13638 0.18876 0.158408 7: 0.377 0.547129 0.260029 8: 0.366567 0.703401 0.19104 9: -0.158338 0.376917 0.413494 10: 0.356095 -0.0894125 0.127245 11: -0.455588 -0.237659 0.336021 12: 0.467403 -0.441909 0.452093 13: -0.083052 -0.238228 0.546469 14: -0.0886966 0.574759 0.237058 15: -0.317664 0.27907 0.321998 16: 0.169157 -0.14358 0.600832 17: 0.341659 0.381843 0.586825 18: -0.651661 0.584909 0.00909982 19: -0.139661 -0.288382 0.0103099 20: 0.0180173 0.216622 0.0146193 pyramid_integrals_test(): Normal end of execution. 08-Jan-2022 09:03:16