
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In this project, students are required to develop their own variable order integration code based on newton-cotes coefficients and integrate a given function using different integration rules and parameters. The goal is to compare the rates of convergence of the integration methods by integrating the function with n=13, 25, 49, 97, 193, 385, and 769 uniformly spaced points on the [0,1] interval for two different choices of parameters α and β. Students are expected to plot the error vs. N in log-log scale and discuss the differences in convergence plots for cases (a) and (b).
Typology: Study Guides, Projects, Research
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Develop your own variable order integration code based on Newton-Cotes coefficients given in Table 5.1 of the class notes with the number of points in integration stencil as input parameter. Use 2 (trapezoidal), 3 (Simpson), 4, 5, and 7 point rule to integrate function
over [0, 1] interval for
function using N= 13, 25, 49, 97, 193, 385, and 769 uniformly spaced points on the interval [0,1] and compare the rates of convergence of the four integration methods, i.e. plot the error vs. N^ in log-log scale. Use legend and different color (style) lines to distinguish between integration methods. Assume that the exact integral in the first case is 0.0095499658265276 and in the second case is 0.3457273592825. Compare the convergence rates with analytically predicted rates given in Table 5.1 of class notes. Discuss the difference of convergence plots for cases (a) and (b).
P.S. Bring your solution to class. Email your code to [email protected]. The program that you send should be a working program. All the codes will be checked whether they run or not. If they are erroneous, but run, points will be taken for the errors. If the code does not run (it has some syntax errors), an additional 25% will be taken off. The goal of this class is for you to be comfortable solving engineering problems. Please take your time and learn how to trust the computer.