11 July 2023 07:05:52 PM tetrahedron_witherden_rule_test(): C version Test tetrahedron_witherden_rule(). tetrahedron_witherden_rule_test01(): Quadrature rule for the tetrahedron, given in barycentric coordinates. Precision p = 5 Number of nodes N = 14 I W A B C D 0 0.112688 0.310886 0.310886 0.0673422 0.310886 1 0.112688 0.310886 0.0673422 0.310886 0.310886 2 0.112688 0.0673422 0.310886 0.310886 0.310886 3 0.112688 0.310886 0.310886 0.310886 0.0673422 4 0.073493 0.0927353 0.0927353 0.721794 0.0927353 5 0.073493 0.0927353 0.721794 0.0927353 0.0927353 6 0.073493 0.721794 0.0927353 0.0927353 0.0927353 7 0.073493 0.0927353 0.0927353 0.0927353 0.721794 8 0.042546 0.0455037 0.454496 0.454496 0.0455037 9 0.042546 0.454496 0.0455037 0.454496 0.0455037 10 0.042546 0.0455037 0.0455037 0.454496 0.454496 11 0.042546 0.0455037 0.454496 0.0455037 0.454496 12 0.042546 0.454496 0.0455037 0.0455037 0.454496 13 0.042546 0.454496 0.454496 0.0455037 0.0455037 Weight Sum = 1 tetrahedron_witherden_rule_test02(): Test the precision of a quadrature rule for the unit tetrahedron. Number of nodes N = 14 Stated precision of rule = 5 Number of quadrature points = 14 Degree Maximum error 0 0.0000000000000001 1 0.0000000000000000 2 0.0000000000000000 3 0.0000000000000000 4 0.0000000000000000 5 0.0000000000000000 6 0.0000136183321160 7 0.0000376250658163 tetrahedron_witherden_rule_test03(): Test the precision of quadrature rules for the unit tetrahedron. Check rules of precision p = 0 through 10 for error in approximating integrals of monomials. maximum maximum p absolute relative error error 0 0 0 1 0 0 2 3.469446951953614e-18 2.081668171172169e-16 3 2.775557561562891e-17 2.081668171172169e-16 4 8.326672684688674e-17 1.275021754842953e-15 5 8.326672684688674e-17 1.275021754842953e-15 6 1.387778780781446e-16 1.748601263784622e-15 7 1.665334536937735e-16 3.747002708109904e-15 8 3.05311331771918e-16 2.654126918244515e-15 9 1.110223024625157e-16 9.445569326693713e-15 10 1.387778780781446e-16 2.232589113582151e-14 tetrahedron_witherden_rule_test03(): Integrate 1/sqrt(r) over the reference tetrahedron. Witherden rule #9 fails because a quadrature point is very near the singularity at the origin. Exact integral value is 0.240059. Volume of tetrahedron is 0.166667. P N Q |Q-Exact] 0 1 0.2532785618838642 0.01321965172186121 1 1 0.2532785618838642 0.01321965172186121 2 4 0.2442781387638714 0.004219228601868463 3 8 0.2422436873187426 0.002184777156739676 4 14 0.2414426895710492 0.001383779409046271 5 14 0.2414426895710492 0.001383779409046271 6 24 0.2403540555991644 0.0002951454371614426 7 35 0.239652743928094 0.0004061662339089611 8 46 0.2404524584761406 0.0003935483141376817 9 59 0.567298442592063 0.32723953243006 10 81 0.2399650072174333 9.390294456962378e-05 tetrahedron_witherden_rule_test() Normal end of execution. 11 July 2023 07:05:52 PM