Is there a possible way to integrate $\exp(-x^2)$ in a bounded 2D triangular region numerically with minimal number of Gauss points? The Gauss-Hermite quadrature scheme is suitable for unbounded regions. I have tried Gauss-Legendre scheme but with 3~5 points the results is not accurate.
2026-02-24 23:50:57.1771977057
On
Numerical integration of $\exp(-x^2)$ in a bounded region
128 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
1
On
A quadrature rule for tetrahedrons of order 5 (taken from enter link description here, page 12):
if (order == 5) //15-point quadrature
{
r = new double[15];
s = new double[15];
t = new double[15];
weight = new double[15];
double[] w = new double[] {0.030283678097089, 0.006026785714286, 0.011645249086029, 0.010949141561386};
double[] l1 = new double[] {0.0, 0.333333333333333333};
double[] l2 = new double[] {0.727272727272727272, 0.090909090909090909};
double[] l3 = new double[] {0.066550153573664, 0.433449846426336};
int i = -1;
i++; r[i] = 0.25; s[i] = 0.25; t[i] = 0.25; weight[i] = w[0];
i++; r[i] = l1[1]; s[i] = l1[1]; t[i] = l1[1]; weight[i] = w[1];
i++; r[i] = l1[0]; s[i] = l1[1]; t[i] = l1[1]; weight[i] = w[1];
i++; r[i] = l1[1]; s[i] = l1[0]; t[i] = l1[1]; weight[i] = w[1];
i++; r[i] = l1[1]; s[i] = l1[1]; t[i] = l1[0]; weight[i] = w[1];
i++; r[i] = l2[1]; s[i] = l2[1]; t[i] = l2[1]; weight[i] = w[2];
i++; r[i] = l2[0]; s[i] = l2[1]; t[i] = l2[1]; weight[i] = w[2];
i++; r[i] = l2[1]; s[i] = l2[0]; t[i] = l2[1]; weight[i] = w[2];
i++; r[i] = l2[1]; s[i] = l2[1]; t[i] = l2[0]; weight[i] = w[2];
i++; r[i] = l3[0]; s[i] = l3[1]; t[i] = l3[1]; weight[i] = w[3];
i++; r[i] = l3[1]; s[i] = l3[0]; t[i] = l3[1]; weight[i] = w[3];
i++; r[i] = l3[1]; s[i] = l3[1]; t[i] = l3[0]; weight[i] = w[3];
i++; r[i] = l3[1]; s[i] = l3[0]; t[i] = l3[0]; weight[i] = w[3];
i++; r[i] = l3[0]; s[i] = l3[1]; t[i] = l3[0]; weight[i] = w[3];
i++; r[i] = l3[0]; s[i] = l3[0]; t[i] = l3[1]; weight[i] = w[3];
}
You can use high order Gaussian quadrature rules for triangles. Order $6$ and $7$ quadratures follow (quadrature points and weights correspond to the reference triangle ($[0,0], [1,0], [0,1]$, on other triangles linear transformation has to be used).