(a) Write a computer program to find the LU decomposition for the matrix A: [1 2 2] 1 su11 И12 U13 121 ll31 l32 1. A = 14 4 2 = LU = 1 0|x U22 U23 L4 6. 4. U33. = 1 and U is an upper triangular matrix. Print out Here L is a lower triangular matrix with li all of the intermediate steps including the values for L and U matrices. In your report, you must provide the formula and the pseudo code for your program.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

plz answer the C part, using Python

(a) Write a computer program to find the LU decomposition for the matrix A:
1
01
U12 U13
2 2]
A = |4 4 2 = LU = |l21
4 6 4]
[1
[U11
1
U22
U23
L131 l32 1.
U33]
= 1 and U is an upper triangular matrix. Print out
Here L is a lower triangular matrix with l;;
all of the intermediate steps including the values for L and U matrices. In your report, you
must provide the formula and the pseudo code for your program.
(b) Count how many multiplications and additions you have performed in (a).
(c) Knowing the LU decomposition of A in (a), write a computer program to solve the
Ax = b using a combination of forward and backward substitution. The linear system
is as follows. Print out each step of the forward and backward substitution. In your
report, you must provide the formula and the pseudo code for your program!
Transcribed Image Text:(a) Write a computer program to find the LU decomposition for the matrix A: 1 01 U12 U13 2 2] A = |4 4 2 = LU = |l21 4 6 4] [1 [U11 1 U22 U23 L131 l32 1. U33] = 1 and U is an upper triangular matrix. Print out Here L is a lower triangular matrix with l;; all of the intermediate steps including the values for L and U matrices. In your report, you must provide the formula and the pseudo code for your program. (b) Count how many multiplications and additions you have performed in (a). (c) Knowing the LU decomposition of A in (a), write a computer program to solve the Ax = b using a combination of forward and backward substitution. The linear system is as follows. Print out each step of the forward and backward substitution. In your report, you must provide the formula and the pseudo code for your program!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
LUP Decomposition
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education