Consider a linear system described by a banded coefficient matrix of width 5, or a pentdiagonal

profileadelen
 (Not rated)
 (Not rated)
Chat
  1. A copy of the MATLAB program (i.e. m-files) written to solve the assigned problem.
  2. A brief document containing the output from this program, including both graphical and textual output. This document should be in PDF format. If the assigned problem required running the program with several input conditions, the output corresponding to each input should be included.
  3. A main report document that uses plain, descriptive language to detail: a. The mathematical or algorithmic strategy used to solve the assigned problem. b. How this strategy was implemented in a MATLAB program. c. How the program output should be interpreted as a solution to the problem. There is no length limit or requirement for this document; it must simply be adequate to describe items a, b and c, above. PDF format is preferred.

 

 

Consider a linear system described by a banded coefficient matrix of width 5, or a pentdiagonal
system:

f1 g1 h1
e2 f2 g2 h2
d3 e3 f3 g3 h3
    
    
dn −2 en −2 fn −2 gn −2 hn −2
dn −1 en −1 fn −1 gn −1
dn en fn
#
$
%
%
%
%
%
%
%
%
%
%
&
'
(
(
(
(
(
(
(
(
(
(
x1
x2
x3



xn −1
xn
#
$
%
%
%
%
%
%
%
%
%
%
&
'
(
(
(
(
(
(
(
(
(
(
=
r1
r2
r3



rn −1
rn
#
$
%
%
%
%
%
%
%
%
%
%
&
'
(
(
(
(
(
(
(
(
(
(
Write an algorithm to solve this system that is more efficient than Gauss elimination, in the
manner of the algorithm for tridiagonal systems that we discussed.
(1) Write a program to implement this algorithm. Use this program to solve the system
represented by the pentdiagonal_coefficients.mat and pentdiagonal_constants.mat files
available on the course Piazza site. Find the solution.
(2) Write a program that can solve the same system using naïve Gauss elimination. Find the
solution.
(3) Compare the number of operations used to find the solution in part (1) to those used to
find the solution in part (2). Explain how this difference will scale with the size of the
system.
Note: The data files are both in the standard MATLAB .mat format. You can use the load
function to read the data in these files into your program.

  • 11 years ago
the answer
NOT RATED

Purchase the answer to view it

blurred-text
  • attachment
    answer.zip