Docsity

Gauss Quadrature: Numerical Evaluation of Integrals using 2-point Formulas - Prof. Oleg V., Assignments of Mechanical Engineering

Toggle sidebar
bg1
Home Work # 4
Due March 19
Use 2-point Gauss quadrature formulas to numerically evaluate the following integrals:
a)
()
4
2
4cos
dx
x
π
π
−∫ b) 22
1
x
x
edx
+∞
−
∫ c)
2
4
2x
x
edx
+∞ −
−∞
∫
Compare the numerical values with the exact values. You may use Matlab symbolic
toolbox to find exact integrals. Use the tables given below for zeros and weights of the
Gauss quadratures.
Table 1: The analytical values for coordinates and weights for 1, 2 and 3 point Gauss quadrature on interval.
n xi wi
1 0 2
2 3
3
± 1
3
0
15
5
±
8
9
5
9
Table 2: The analytical values for coordinates and weights for 1 and 2 point Gauss quadrature on semi-infinite interval.
n xi wi
1 1 1
2 22−
22+
22
4
+
22
4
−
Table 3: The analytical values for coordinates and weights for 1, 2 and 3 point Gauss quadrature on infinite interval.
n xi wi
1 0
π
2 2
2
± 2
π
3
0
6
2
±
2
3
π
6
π

Partial preview of the text

Download Gauss Quadrature: Numerical Evaluation of Integrals using 2-point Formulas - Prof. Oleg V. and more Assignments Mechanical Engineering in PDF only on Docsity!

Home Work # 4

Due March 19

Use 2-point Gauss quadrature formulas to numerically evaluate the following integrals:

a)

4 2

4 cos

dx

x

π

−π

∫ b)^

2 2 1

x e xdx

+∞ −

∫ c)^

2 4 x^2

x e dx

+∞ − −∞

Compare the numerical values with the exact values. You may use Matlab symbolic

toolbox to find exact integrals. Use the tables given below for zeros and weights of the

Gauss quadratures.

Table 1: The analytical values for coordinates and weights for 1, 2 and 3 point Gauss quadrature on interval. n x (^) i wi 1 0 2 2 3 3

Table 2: The analytical values for coordinates and weights for 1 and 2 point Gauss quadrature on semi-infinite interval. n x (^) i wi 1 1 1

2 2 −^2

Table 3: The analytical values for coordinates and weights for 1, 2 and 3 point Gauss quadrature on infinite interval. n x (^) i wi