Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 (worth 200 marks) Introduction Consider the integral of function f(x) from a to b (1) To find a numerical (approximate) value of /, one
1 (worth 200 marks) Introduction Consider the integral of function f(x) from a to b (1) To find a numerical (approximate) value of /, one may need to divide the interval/domain [a, b] into a set of NV subintervals/segments by employing the points a = 11, 12, 13, ".. , IN, IN+1 = b IN+1=b IN = . I*+1 f(x)da, (2) k=1 and then apply a numerical integration method to each segment. One popular numerical inte- gration method is the Gaussian quadrature rule that is stated as frjar = Itl - It 2 2 2 (3) where n is the number of Gauss points, &, the abscissas and w, the weight factors. Table 1 displays the abscissas and weight factors for the first three values of n. Table 1: Abscissas and weight factors for Gaussian integration One Gauss point (n = 1) 2 Two Gauss points (n = 2) 1/3 V3 Three Gauss points (n = 3) In this assignment, the integrand and the limits are given by (x) = sin(mr/10) m, (4) a = 0 m, b = 10 m, (6)and the segments are of the same length A = (b - a)/N. It is noted that h is called the grid size. Your tasks are to apply the Gaussian quadrature with n = 3 to evaluate the integral I for several values of W, and compare the obtained values with the analytical solution. Requirements For this assessment item, you must perform hand calculations: 1. Find the analytical (exact) value of the integral I. 2. Apply the 3-point Gaussian quadrature to evaluate the integral I for NV = 1 (the entire domain) and / =2 (the domain divided into 2 segments). 3. Calculate the percentage error approx - Teract Hexactl * 100%, (7) for each N value. In (7), Sapproz and ferart are the approximate and exact values of the integral I, respectively. 4. Report the approximate solutions rounded to four decimal places and the corresponding percentage errors rounded to two significant figures
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started