07-Jan-2022 15:57:33 ball_monte_carlo_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test ball_monte_carlo(). ball_monte_carlo_test01(): ball01_sample() estimates integrals over the interior of the unit ball using the Monte Carlo method. N 1 X^2 Y^2 Z^2 X^4 X^2Y^2 Z^4 1 4.18879 0.13021 1.51482 2.29822 0.00404764 0.0470889 1.26094 2 4.18879 0.0427576 1.79932 0.822169 0.000525828 0.0148834 0.280792 4 4.18879 0.985336 0.459551 1.65454 0.330294 0.154091 0.944113 8 4.18879 0.709477 0.972526 0.686575 0.285109 0.168356 0.244712 16 4.18879 0.726163 0.825975 0.922468 0.266247 0.073732 0.450392 32 4.18879 0.663482 0.800301 0.995057 0.234325 0.120865 0.481546 64 4.18879 0.869874 0.820555 0.833975 0.359719 0.102759 0.346786 128 4.18879 0.88648 0.733562 0.91777 0.371962 0.124863 0.353847 256 4.18879 0.898277 0.819722 0.841008 0.419525 0.121199 0.377282 512 4.18879 0.829889 0.883331 0.836566 0.359027 0.134191 0.35738 1024 4.18879 0.844258 0.862491 0.776249 0.366722 0.124249 0.31542 2048 4.18879 0.820789 0.836938 0.85377 0.342689 0.122347 0.37775 4096 4.18879 0.828418 0.864249 0.858048 0.348521 0.124249 0.368133 8192 4.18879 0.832945 0.82887 0.839417 0.355433 0.117157 0.364418 16384 4.18879 0.83827 0.834364 0.83407 0.359957 0.116989 0.354266 32768 4.18879 0.83808 0.837594 0.839141 0.359462 0.119599 0.359072 65536 4.18879 0.840322 0.837246 0.837067 0.360879 0.119471 0.357493 Exact 4.18879 0.837758 0.837758 0.837758 0.359039 0.11968 0.359039 ball_monte_carlo_test(): Normal end of execution. 07-Jan-2022 15:57:33