Instruction Students use Matlab or Python to solve the following problems and write a report. The report must have 3 par
Posted: Thu May 12, 2022 1:40 pm
Instruction Students use Matlab or Python to solve the following
problems and write a report. The report must have 3 parts:
i) The theory and algorithm;
ii) The Matlab or Python commands;
Problem 2. Let R be the rectangle (0; 2] [1; 4). (a) Let f(1;y) = x cos(x² + y). Calculate the integral [[ f(x,y)dA. R (b) Study the Simpson formula. Develop a function to estimate the integral in R using Simpson formula. (c) Let n and m be the number of sub-interval in x and y compo- nents, respectively. Estimate the integral with [n, m] = [40,60] and [n, m] = [80, 120) and estimate the errors. =
problems and write a report. The report must have 3 parts:
i) The theory and algorithm;
ii) The Matlab or Python commands;
Problem 2. Let R be the rectangle (0; 2] [1; 4). (a) Let f(1;y) = x cos(x² + y). Calculate the integral [[ f(x,y)dA. R (b) Study the Simpson formula. Develop a function to estimate the integral in R using Simpson formula. (c) Let n and m be the number of sub-interval in x and y compo- nents, respectively. Estimate the integral with [n, m] = [40,60] and [n, m] = [80, 120) and estimate the errors. =