ball_integrals_test 10-Jan-2014 08:16:00 BALL_INTEGRALS_TEST MATLAB version Test the BALL_INTEGRALS library. BALL_INTEGRALS_TEST01 Estimate monomial integrals using Monte Carlo over the interior of the unit ball in 3D. Number of sample points used is 4192 If any exponent is odd, the integral is zero. We will restrict this test to randomly chosen even exponents. Ex Ey Ez MC-Estimate Exact Error 2 8 8 9.63528e-06 1.00764e-05 4.41e-07 4 4 0 0.0106935 0.01088 1.86e-04 2 0 0 0.832372 0.837758 5.39e-03 6 0 4 0.00406502 0.00418461 1.20e-04 4 6 6 1.2306e-05 1.29554e-05 6.49e-07 0 8 2 0.0102862 0.00976408 5.22e-04 0 0 8 0.131516 0.126933 4.58e-03 8 0 0 0.123941 0.126933 2.99e-03 2 8 0 0.00951229 0.00976408 2.52e-04 2 8 2 0.000651667 0.000650939 7.28e-07 6 4 8 3.93428e-06 4.31848e-06 3.84e-07 4 8 4 1.78045e-05 1.81376e-05 3.33e-07 0 6 2 0.0186795 0.0181333 5.46e-04 0 4 2 0.0400897 0.0398932 1.96e-04 6 2 2 0.00130118 0.00139487 9.37e-05 6 0 2 0.0177126 0.0181333 4.21e-04 8 8 0 0.000216277 0.000211605 4.67e-06 6 0 6 0.00133952 0.00139487 5.54e-05 6 2 8 2.75161e-05 3.02293e-05 2.71e-06 6 6 4 1.26742e-05 1.29554e-05 2.81e-07 BALL_INTEGRALS_TEST Normal end of execution. 10-Jan-2014 08:16:00 diary off