Docsity

LU Decomposition: Solving Linear Systems using MATLAB - Prof. Yongcheng Zhou, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Computer Problems: LU Decomposition
Due Sep 25, 2009
1. Write a MATLAB program to solve the linear systems Ax =Busing LU decompo-
sition
a. Following the pseudo-code of LU decomposition given in the class or in the textbook
to write a MATLAB program to find the L and U matrices of the given matrices.
b. Write the formula for the forward/backward substitutions for solving the above the
triangular linear systems. Program these formulae using MATLAB and solve the
linear systems. Write the solutions into data files.
c. Solve the same linear systems using MATLAB’s inverse function inv(), and use these
solutions to check your LU decomposition.
d. Building upon the LU decomposition program obtained above, write a MATLAB
code to find the Cholesky decomposition of the given symmetric matrix following the
approached described in the proof of Theorem 2 in Page 157 of the textbook.
Matrix Aand vector Bcan be downloaded in the course page.
Send all the MATLAB files and solutions to the instructor in a single ZIP pack.
1

Partial preview of the text

Download LU Decomposition: Solving Linear Systems using MATLAB - Prof. Yongcheng Zhou and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Computer Problems: LU Decomposition

Due Sep 25, 2009

  1. Write a MATLAB program to solve the linear systems Ax = B using LU decompo- sition

a. Following the pseudo-code of LU decomposition given in the class or in the textbook to write a MATLAB program to find the L and U matrices of the given matrices.

b. Write the formula for the forward/backward substitutions for solving the above the triangular linear systems. Program these formulae using MATLAB and solve the linear systems. Write the solutions into data files.

c. Solve the same linear systems using MATLAB’s inverse function inv(), and use these solutions to check your LU decomposition.

d. Building upon the LU decomposition program obtained above, write a MATLAB code to find the Cholesky decomposition of the given symmetric matrix following the approached described in the proof of Theorem 2 in Page 157 of the textbook.

Matrix A and vector B can be downloaded in the course page. Send all the MATLAB files and solutions to the instructor in a single ZIP pack.