Tue May 20 21:22:09 2025 cube_integrals_test(): python version: 3.10.12 numpy version: 1.26.4 Test cube_integrals(). cube01_monomial_integral_test(): cube01_monomial_integral() computes the integral of a monomial within the interior of the unit cube in 3D. Compare with a Monte Carlo estimate. Number of sample points used is 4192 Ex Ey Ez MC-Estimate Exact Error 2 1 5 0.0280425 0.0277778 0.00026 2 0 0 0.337984 0.333333 0.0047 6 4 5 0.00470419 0.0047619 5.8e-05 4 6 3 0.00700752 0.00714286 0.00014 3 2 0 0.084284 0.0833333 0.00095 4 1 4 0.0199227 0.02 7.7e-05 5 6 1 0.0116213 0.0119048 0.00028 2 6 4 0.00945215 0.00952381 7.2e-05 5 5 7 0.00348904 0.00347222 1.7e-05 0 0 5 0.168998 0.166667 0.0023 2 1 6 0.0242051 0.0238095 0.0004 1 1 3 0.0624716 0.0625 2.8e-05 3 7 6 0.00447549 0.00446429 1.1e-05 0 3 3 0.0623146 0.0625 0.00019 5 5 3 0.00680291 0.00694444 0.00014 1 7 6 0.00889609 0.00892857 3.2e-05 2 2 2 0.0368001 0.037037 0.00024 1 7 0 0.0604472 0.0625 0.0021 2 5 3 0.0137297 0.0138889 0.00016 2 5 2 0.0181942 0.0185185 0.00032 cube01_sample_test cube01_sample() samples the unit cube. Sample points in the unit cube. Row: 0 1 2 Col 0 : 0.795358 0.364957 0.44667 1 : 0.852881 0.0550596 0.649537 2 : 0.792307 0.71045 0.286149 3 : 0.944817 0.913851 0.63291 4 : 0.433543 0.453338 0.917588 5 : 0.831447 0.747212 0.0241124 6 : 0.159224 0.259726 0.252492 7 : 0.547688 0.0932846 0.0961748 8 : 0.423244 0.327625 0.0173841 9 : 0.286883 0.252533 0.32137 cube01_volume_test() cube01_volume() returns the volume of the unit cube. cube01_volume() = 1.0 cube_integrals_test(): Normal end of execution. Tue May 20 21:22:09 2025