Question: 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,
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, i) = AUG(2, i) L1 * AUG(1, i);
AUG(3, i) = AUG(3, i) L2 * AUG(1, i);
END DO
L3 = AUG(3, 2)/AUG(2, 2)
DOFOR i = 1 to 4
AUG(3, i) = AUG(3, i) L3 * AUG(2, i);
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 = [x1; x2; x3]
END GaussElimBackSub
Implement the Nave Gauss Elimination with Back Substitution method in MATLAB using the pseudo code provided.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
