>> ball_volume_monte_carlo ( 4, 123456789 ) 26-Sep-2010 12:06:17 BALL_VOLUME_MONTE_CARLO: MATLAB version Estimate the volume of the unit sphere using a Monte Carlo procedure. The spatial dimension is 4 The random number seed is 123456789 Log(N) N Estimate Error 0 1 0 4.9 1 2 0 4.9 2 4 0 4.9 3 8 2 2.9 4 16 2 2.9 5 32 3 1.9 6 64 4.75 0.18 7 128 4.5 0.43 8 256 4.4375 0.5 9 512 4.6875 0.25 10 1024 4.640625 0.29 11 2048 4.765625 0.17 12 4096 4.9140625 0.021 13 8192 4.9003906 0.034 14 16384 4.9296875 0.0051 15 32768 4.9174805 0.017 16 65536 4.9597168 0.025 17 131072 4.9229736 0.012 18 262144 4.9304199 0.0044 19 524288 4.9334717 0.0013 20 1048576 4.9240875 0.011 21 2097152 4.9298325 0.005 22 4194304 4.9330788 0.0017 23 8388608 4.9350414 0.00024 24 16777216 4.933857 0.00095 oo oo 4.9348022 0 BALL_VOLUME_MONTE_CARLO: Normal end of execution. 26-Sep-2010 12:06:43 >>