03-Nov-2022 14:16:44 ball_monte_carlo_test(): MATLAB/Octave version 4.2.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.557642 0.00381592 1.44956 0.0742372 0.000508002 0.501629 2 4.18879 0.155143 1.04815 1.54939 0.00807463 0.0353124 0.583583 4 4.18879 0.941989 1.16134 0.608209 0.482318 0.0867821 0.184067 8 4.18879 1.26757 0.995607 0.42513 0.865283 0.148573 0.096086 16 4.18879 0.542128 0.640732 0.982918 0.298664 0.0532528 0.573035 32 4.18879 0.92839 0.935361 0.649476 0.425366 0.130215 0.249956 64 4.18879 0.679316 0.702736 1.00031 0.267423 0.0877724 0.443614 128 4.18879 0.913937 0.824128 0.78666 0.41028 0.130434 0.319825 256 4.18879 0.859248 0.795897 0.825374 0.393178 0.125309 0.362393 512 4.18879 0.819232 0.86192 0.856812 0.334763 0.127309 0.361117 1024 4.18879 0.863101 0.836784 0.803692 0.382263 0.121176 0.346049 2048 4.18879 0.85692 0.843965 0.835397 0.377153 0.124387 0.361089 4096 4.18879 0.853093 0.838946 0.825012 0.369176 0.120691 0.349312 8192 4.18879 0.853219 0.820767 0.838146 0.36857 0.121394 0.360907 16384 4.18879 0.841585 0.835613 0.850138 0.36118 0.119096 0.368092 32768 4.18879 0.844655 0.841953 0.835247 0.361847 0.120801 0.35863 65536 4.18879 0.839567 0.836098 0.833581 0.360094 0.120215 0.355471 Exact 4.18879 0.837758 0.837758 0.837758 0.359039 0.11968 0.359039 ball_monte_carlo_test(): Normal end of execution. 03-Nov-2022 14:16:46