21 January 2020 11:07:20 AM
TRIANGLE01_INTEGRALS_TEST
C version
Test the TRIANGLE01_INTEGRALS library.
TEST01
Estimate monomial integrals using Monte Carlo
over the interior of the unit triangle in 2D.
Number of sample points used is 4192
We will restrict this test to randomly chosen even exponents.
Ex Ey MC-Estimate Exact Error
0 0 0.5 0.5 0.00e+00
0 1 0.165406 0.166667 1.26e-03
0 2 0.0816578 0.0833333 1.68e-03
0 3 0.048254 0.05 1.75e-03
0 4 0.0316683 0.0333333 1.67e-03
1 0 0.166961 0.166667 2.94e-04
1 1 0.0420597 0.0416667 3.93e-04
1 2 0.0167899 0.0166667 1.23e-04
1 3 0.00832158 0.00833333 1.18e-05
1 4 0.00469451 0.0047619 6.74e-05
2 0 0.083375 0.0833333 4.17e-05
2 1 0.0169313 0.0166667 2.65e-04
2 2 0.00566568 0.00555556 1.10e-04
2 3 0.00241965 0.00238095 3.87e-05
2 4 0.00120037 0.00119048 9.89e-06
3 0 0.0498756 0.05 1.24e-04
3 1 0.00848954 0.00833333 1.56e-04
3 2 0.00244506 0.00238095 6.41e-05
3 3 0.000916488 0.000892857 2.36e-05
3 4 0.000405015 0.000396825 8.19e-06
4 0 0.0331019 0.0333333 2.31e-04
4 1 0.00485231 0.0047619 9.04e-05
4 2 0.0012276 0.00119048 3.71e-05
4 3 0.00041029 0.000396825 1.35e-05
4 4 0.000163516 0.00015873 4.79e-06
TRIANGLE01_INTEGRALS_TEST
Normal end of execution.
21 January 2020 11:07:20 AM