Home License -- for personal use only. Not for government, academic, research, commercial, or other organizational use. 07-Oct-2025 20:03:42 disk_monte_carlo_test(): MATLAB/Octave version 9.11.0.2358333 (R2021b) Update 7 Test disk_monte_carlo(). disk_area_test(): disk_area() computes the area of a disk with center = (CX,CY) and radius R. ( CX CY ) R Area ( 3.147237, 4.057919) 0.126987 0.050660 ( 4.133759, 1.323592) 0.097540 0.029890 (-2.215018, 0.468815) 0.957507 2.880273 ( 4.648885,-3.423869) 0.970593 2.959538 ( 4.571669,-0.146244) 0.800280 2.012029 (-3.581137,-0.782387) 0.915736 2.634450 ( 2.922073, 4.594924) 0.655741 1.350872 (-4.642883, 3.491293) 0.933993 2.740548 ( 1.787352, 2.577401) 0.743132 1.734932 (-1.077730, 1.554779) 0.171187 0.092064 disk_sample_test(): disk_sample() estimates integrals in the disk with center (0,0) and radius 1 N 1 X^2 Y^2 X^4 X^2Y^2 Y^4 X^6 1 3.14159 2.04155 0.0435752 1.32669 0.0283171 0.000604407 0.862144 2 3.14159 0.791033 1.43321 0.398354 0.147914 0.881528 0.200606 4 3.14159 0.328903 1.12358 0.0466196 0.154014 0.642702 0.00717455 8 3.14159 0.583651 0.568847 0.209233 0.0895458 0.274083 0.0980592 16 3.14159 0.825989 0.84448 0.380459 0.163699 0.375597 0.222661 32 3.14159 0.815625 0.703918 0.412005 0.129235 0.360518 0.250538 64 3.14159 0.852079 0.757816 0.418309 0.168146 0.326182 0.243409 128 3.14159 0.770047 0.772248 0.374407 0.146559 0.359409 0.230221 256 3.14159 0.77239 0.746589 0.374603 0.135546 0.368528 0.226143 512 3.14159 0.773996 0.883994 0.385644 0.141126 0.478249 0.240243 1024 3.14159 0.717552 0.791352 0.344158 0.116206 0.405349 0.209652 2048 3.14159 0.78631 0.76441 0.387412 0.128365 0.380692 0.238421 4096 3.14159 0.798135 0.779997 0.404162 0.127553 0.386184 0.255656 8192 3.14159 0.764942 0.796032 0.376029 0.131143 0.401942 0.232294 16384 3.14159 0.783409 0.788624 0.389531 0.131725 0.395826 0.242108 32768 3.14159 0.791488 0.784836 0.397161 0.131711 0.391761 0.248671 65536 3.14159 0.789779 0.785215 0.397405 0.131143 0.393252 0.249535 Exact 3.14159 0.785398 0.785398 0.392699 0.1309 0.392699 0.245437 disk_sample_test(): disk_sample() estimates integrals in the disk with center (1,0) and radius 1 N 1 X^2 Y^2 X^4 X^2Y^2 Y^4 X^6 1 3.14159 1.04925 0.213606 0.350433 0.0713413 0.0145237 0.117039 2 3.14159 3.85593 1.36633 5.48404 2.27604 1.07183 8.57537 4 3.14159 9.40986 0.0995597 29.432 0.295967 0.00337579 95.6763 8 3.14159 4.31738 0.276674 10.0488 0.364443 0.0409863 25.8996 16 3.14159 2.79834 0.832266 4.27499 0.941289 0.406301 7.84217 32 3.14159 3.89189 0.93835 7.19419 1.11321 0.528762 15.9649 64 3.14159 3.44543 0.800015 6.54982 0.893262 0.391642 15.216 128 3.14159 4.31113 0.750852 9.58058 0.910551 0.373751 25.2315 256 3.14159 3.94797 0.73718 8.27681 0.823968 0.363602 21.1087 512 3.14159 3.67279 0.785831 7.58494 0.917526 0.372895 19.208 1024 3.14159 3.9658 0.788309 8.4518 0.930192 0.385467 21.8998 2048 3.14159 3.91089 0.788649 8.23696 0.921086 0.401189 21.102 4096 3.14159 3.96637 0.797737 8.40687 0.927611 0.401559 21.6278 8192 3.14159 3.92047 0.769616 8.23447 0.893679 0.384496 21.0512 16384 3.14159 3.90139 0.785658 8.16317 0.917464 0.392175 20.7864 32768 3.14159 3.91413 0.786074 8.22028 0.915793 0.39133 21.0022 65536 3.14159 3.91462 0.786544 8.22599 0.916774 0.393421 21.039 disk_sample_test(): disk_sample() estimates integrals in the disk with center (1,2) and radius 3 N 1 X^2 Y^2 X^4 X^2Y^2 Y^4 X^6 1 28.2743 17.5302 292.12 10.8688 181.116 3018.08 6.73871 2 28.2743 72.6524 97.0594 209.62 336.618 664.847 656.501 4 28.2743 92.9946 97.938 612.077 130.149 934.151 4958.9 8 28.2743 84.9369 8.38216 417.216 31.9924 4.47563 2392.12 16 28.2743 112.782 229.194 1016.44 942.679 2784.13 11902.9 32 28.2743 72.406 205.569 377.298 432.017 2904.67 2612.21 64 28.2743 81.5748 197.045 526.247 627.387 2650.36 4691.03 128 28.2743 88.5706 173.289 591.113 545.332 2222.9 5246.51 256 28.2743 86.4217 182.191 657.573 484.197 2383.94 6601.79 512 28.2743 101.396 168.075 822.036 501.612 2105.07 8516.53 1024 28.2743 94.3051 173.452 749.228 518.462 2213.05 7735.87 2048 28.2743 94.1017 188.547 740.215 562.154 2473.49 7499.38 4096 28.2743 92.1922 177.061 693.916 527.655 2284.02 6864.9 8192 28.2743 91.5673 176.215 698.765 525.71 2278.07 6979.24 16384 28.2743 92.0206 176.162 697.474 523.726 2260.94 6904.65 32768 28.2743 93.0177 176.543 708.719 531.584 2260.8 7033.45 65536 28.2743 91.7547 176.964 694.183 525.932 2272.81 6862.19 disk_monte_carlo_test(): Normal end of execution. 07-Oct-2025 20:03:43