Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3. (50pts) Write a program (you can use any programming language) to solve the linear system Ax=b by Gaussian elimination and backward substitution, without

image text in transcribed

Problem 3. (50pts) Write a program (you can use any programming language) to solve the linear system Ax=b by Gaussian elimination and backward substitution, without any pivoting. Run it as follows (the syntax given below is in Matlab as an example): \[ \begin{array}{l} A=\left[\begin{array}{lllllllllll} 3 & 2 & -4 & ; & -4 & 5 & -1 & ; & 2 & -3 & 5 \end{array} ight] \\ \mathrm{b}=[-5 ; 3 ; 11] \\ x=\text { gauss_elim }(A, b) \\ \end{array} \] Try also \[ \begin{array}{l} A=\left[\begin{array}{lllllllllll} 3 & 2 & -4 & ; & 2 & -3 & 5 & ; & -4 & 5 & -1 \end{array} ight] \\ \mathrm{b}=[-5 ; 11 ; 3] \\ x \text { = gauss_elim }(\mathrm{A}, \mathrm{b}) \\ \end{array} \] which is the first system, but with the equations written in a different order (in this case, it is clear from the output that the program does not do interchange the rows of the augmented matrix since pivoting is not used). In the case \[ \begin{array}{l} A=\left[\begin{array}{lllllllllll} 1 & 2 & 3 & 3 & 5 & 6 & 7 & 7 & 8 \end{array} ight] \\ \mathrm{b}=[-5 ; 3 ; 11] \\ x=\text { gauss_elim }(A, b) \\ \end{array} \] explain what went wrong (hint: what is detA ?). Please submit your code, output, and explanation

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

=+j Describe the various support services delivered by IHR.

Answered: 1 week ago

Question

=+j Explain IHRMs role in global HR research.

Answered: 1 week ago

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago