Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pseudocode FUNCTION GaussElimBackSub (A, b) AUG - [A, b] L1 - AUG (2, 1)/AUG (1, 1) L2 - AUG (3, 1)/AUG(1, 1) DOFOR i =

image text in transcribedimage text in transcribedimage text in transcribed

Pseudocode FUNCTION GaussElimBackSub (A, b) AUG - [A, b] L1 - AUG (2, 1)/AUG (1, 1) L2 - AUG (3, 1)/AUG(1, 1) DOFOR i = 1 to 4 AUG (2, 1) = AUG (2, i) L1 * AUG (1, 1); AUG (3, i) - AUG (3, i) L2 * AUG(1, 1); END DO L3 - AUG (3, 2)/AUG (2, 2) DOFOR i = 1 to 4 AUG (3, i) - AUG (3, i) L3 * AUG (2, 1); END DO DISPLAY AUG x3 = AUG (3, 4)/AUG (3, 3) X2 - (AUG (2, 4) AUG (2, 3) *x3)/AUG (2, 2) x1 = (AUG(1, 4) AUG(1, 2) *x2 AUG(1, 3) *x3)/AUG(1, 1) GaussElimBackSub = (x ; x ; x3] END GaussElimBack Sub Lab Work 1. Implement the Nave Gauss Elimination with Back Substitution method in MATLAB using the pseudocode provided. 2. Use the above MATLAB implementation, solve the following system of linear equations 10x1 + 2x2 - X3 - 27 -3x2 - 6x2 + 2x3 = -61.5 X1 + x2 + 5x3 = -21.5 Recall that b is a COLUMN VECTOR. Solution: 3. Use MATLAB to perform multiply A and X and notice the results. 4. Use the above MATLAB implementation, solve the following system of linear equations X1 + X2 - X3 = 10 5x1 + 5x2 + 2x3 = 20 3x + 2x2 + 5x3 = 14 Solution: x = x3 = What is the difficulty with this linear system? What are your suggestions to find the solution

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_2

Step: 3

blur-text-image_3

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions