Tue Oct 19 17:00:28 2021 polygon_monte_carlo_tests Python version: 3.6.9 Test polygon_monte_carlo(). polygon_area_test Python version: 3.6.9 polygon_area computes the area of a polygon. Number of polygonal vertices = 4 The polygon vertices: Col: 0 1 Row 0 : 1 0 1 : 2 1 2 : 1 2 3 : 0 1 Exact area is 2 The computed area is 2 Number of polygonal vertices = 8 The polygon vertices: Col: 0 1 Row 0 : 0 0 1 : 3 0 2 : 3 3 3 : 2 3 4 : 2 1 5 : 1 1 6 : 1 2 7 : 0 2 Exact area is 6 The computed area is 6 polygon_area_test Normal end of execution. polygon_monomial_integral_test Python version: 3.6.9 polygon_monomial_integral evaluates the integral of a monomial x^p y^q over the interior of a polygon in 2D. Polygon vertices: Col: 0 1 Row 0 : 0 0 1 : 1 0 2 : 0 1 P Q Integral 0 0 0.5 0 1 0.166667 1 0 0.166667 0 2 0.0833333 1 1 0.0416667 2 0 0.0833333 0 3 0.05 1 2 0.0166667 2 1 0.0166667 3 0 0.05 0 4 0.0333333 1 3 0.00833333 2 2 0.00555556 3 1 0.00833333 4 0 0.0333333 polygon_monomial_integral_test Normal end of execution. polygon_monte_carlo_test Python version: 3.6.9 Use polygon_sample to estimate integrals over the interior of a polygon in 2D. N 1 X^2 Y^2 X^4 X^2Y^2 Y^4 X^6 1 4 0.0658422 0.285635 0.0010838 0.0047017 0.0203968 1.78399e-05 2 4 1.46265 2.37992 0.846832 1.19413 1.75222 0.537824 4 4 1.00823 1.29543 0.905896 0.567497 0.664497 0.858778 8 4 0.70607 1.92907 0.235131 0.383228 1.18701 0.101229 16 4 1.34712 0.745073 0.80716 0.196127 0.213876 0.563271 32 4 1.36882 1.20554 0.766394 0.509675 0.745536 0.525696 64 4 1.00055 1.51581 0.578513 0.351294 0.902814 0.412084 128 4 1.41409 1.28455 0.861693 0.449368 0.7817 0.630933 256 4 1.34686 1.29996 0.824898 0.448319 0.769249 0.599058 512 4 1.31279 1.37515 0.77873 0.452237 0.799442 0.55054 1024 4 1.31407 1.36869 0.797271 0.452254 0.834305 0.578256 2048 4 1.3579 1.31468 0.824836 0.442586 0.770443 0.596839 4096 4 1.31256 1.31828 0.779858 0.425772 0.785171 0.551225 8192 4 1.32907 1.34932 0.797166 0.448431 0.814266 0.569264 16384 4 1.3208 1.31882 0.784993 0.433016 0.787643 0.557236 32768 4 1.32895 1.3351 0.795054 0.440604 0.799548 0.566232 65536 4 1.32984 1.31978 0.794587 0.438038 0.787161 0.565591 Exact 4 1.33333 1.33333 0.8 0.444444 0.8 0.571429 polygon_monte_carlo_test Normal end of execution. polygon_sample_test Python version: 3.6.9 polygon_sample samples a polygon. Sample points: Col: 0 1 Row 0 : 1.8816 0.489721 1 : 0.301959 0.441097 2 : 0.6773 1.39092 3 : 0.720255 0.515261 4 : 0.576959 0.266974 5 : 1.84221 0.408602 6 : 1.46577 0.757185 7 : 0.546121 1.26473 8 : 0.836724 0.541106 9 : 1.05668 0.319839 10 : 1.96002 0.70685 11 : 0.500912 0.697953 12 : 0.478801 0.458938 13 : 0.890421 1.32547 14 : 0.735885 0.717149 15 : 1.80782 0.41957 16 : 1.40586 0.585194 17 : 0.95604 1.26131 18 : 0.886378 1.0963 19 : 1.24943 0.153533 polygon_sample_test Normal end of execution. TRIANGLE_area_test Python version: 3.6.9 TRIANGLE_area computes the area of a triangle. (XA,YA) = (0,1) (XB,YB) = (0,0) (XC,YC) = (1,0) Triangle area is 0.5 TRIANGLE_area_test Normal end of execution. polygon_monte_carlo_tests: Normal end of execution. Tue Oct 19 17:00:29 2021