



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
The lecture notes for a university course on numerical integration and solving systems of linear equations. Five methods for numerical integration using matlab, including the sum, cumulative sum, trapezoidal rule, quadrature, and polynomial integration. The lecture also introduces three types of problems involving sets of linear equations and how to solve them using matlab. The next lecture will cover interpolation, regression, and curve fitting.
Typology: Study notes
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Lecture 23: Monday April 11, 2011: Announcements: Note- NO lab next Thursday, April 21st. Spring Recess. REMAINING ASSIGNMENTS:
diary LectureApr11.m 1. Numerical Integration: (Palm Ch 9. pg. 370-377) FIVE METHODS of NUMERICAL INTEGRATION --> 1. SUM* Sum of elements. S = SUM(X) is the sum of the elements of the vector X. If X is a matrix, S is a row vector with the sum over each column. For N-D arrays, SUM(X) operates along the first non-singleton dimension.
If X is floating point, that is double or single, S is accumulated natively, that is in the same class as X, and S has the same class as X. If X is not floating point, S is accumulated in double and S has class double. S = SUM(X,DIM) sums along the dimension DIM.sum Example : If X = [0 1 2 3 4 5] then sum(X,1) is [3 5 7] and sum(X,2) is [ 3 12]; *For this method, MATLAB will assume unit spacing (i.e. that dx = 1). Therefore, you must multiply S, the SUM over the array for f(x), by the appropriate dx to get the correct y=integral f(x) dx. See example code Mar30.m for an example.
POLYINT Integrate a polynomial analytically. POLYINT(P,K) returns a polynomial representing the integral of polynomial P, using a scalar constant of integration K. POLYINT(P) assumes a constant of integration K=0. *See example code Mar30.m for an example. IN CLASS PROBLEMS ON NUMERICAL INTEGRATION (w GROUP HELP)
More on Linear Equations then begin Interpolation, Regression, CurveFitting