Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with the computer code in MATLAB. Aerospace 313: Computer Assignment No. 3 LU-Decomposition and Matrix Inversion Due: Wednesday December 12th, 2018 Write

Please help me with the computer code in MATLAB.image text in transcribed

Aerospace 313: Computer Assignment No. 3 LU-Decomposition and Matrix Inversion Due: Wednesday December 12th, 2018 Write a computer code to perform LU-decomposition on the tridiagonal matrix given below. Use the Thomas algorithm. Then extend your code to find the inverse of the matrix. 0 2 41 0 0 0 A 0 01 3 1 0 0 0 0 0 0 1 00 0 0 0 2 1 Your results should be presented as a short report. The report should include 1. A statement of the problem This should just be a restatement of the problem description given above in its own section 2. A summary of the analysis and the recursion relations used This should be a section that describes the formulas used by te Thomas algorithm to perform the LU decomposition, perform the forward and backward substitution, and then obtain the matrix inverse 3. The result of the LU-decomposition show both L and U matrices. You can choose to show only the . . and colunin vectors. 4. The inverse of the matrix calculated using your code - show the matrix inverse. In this case show all the elements of the matrix. To check the accuracy of your result you can have your code perform a matrix multiplication to show that the product of the matrix and its inverse does equal the identity matrix. 5. A description of the results this should include comments about the method used (in word form), and the accuracy of the results (how well does the product of the matrix and its inverse match the identity matrix). 6. An Appendix: Copy of computer code. the structure of the code will be graded. This means that each major component of the algorithm should be calculated using a separate function or routine. In this way that particular set of operations could be replaced with another function or routine without changing the entire code. All the actions taken by the code should be documented with comments. This would include indicating what the function that is being used is going to do and, in the function or routine itself, what its function is Aerospace 313: Computer Assignment No. 3 LU-Decomposition and Matrix Inversion Due: Wednesday December 12th, 2018 Write a computer code to perform LU-decomposition on the tridiagonal matrix given below. Use the Thomas algorithm. Then extend your code to find the inverse of the matrix. 0 2 41 0 0 0 A 0 01 3 1 0 0 0 0 0 0 1 00 0 0 0 2 1 Your results should be presented as a short report. The report should include 1. A statement of the problem This should just be a restatement of the problem description given above in its own section 2. A summary of the analysis and the recursion relations used This should be a section that describes the formulas used by te Thomas algorithm to perform the LU decomposition, perform the forward and backward substitution, and then obtain the matrix inverse 3. The result of the LU-decomposition show both L and U matrices. You can choose to show only the . . and colunin vectors. 4. The inverse of the matrix calculated using your code - show the matrix inverse. In this case show all the elements of the matrix. To check the accuracy of your result you can have your code perform a matrix multiplication to show that the product of the matrix and its inverse does equal the identity matrix. 5. A description of the results this should include comments about the method used (in word form), and the accuracy of the results (how well does the product of the matrix and its inverse match the identity matrix). 6. An Appendix: Copy of computer code. the structure of the code will be graded. This means that each major component of the algorithm should be calculated using a separate function or routine. In this way that particular set of operations could be replaced with another function or routine without changing the entire code. All the actions taken by the code should be documented with comments. This would include indicating what the function that is being used is going to do and, in the function or routine itself, what its function is

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions