adapt the gauss elimination code to use pivoting row swamps
adapt the gauss elimination code to use pivoting. row swamps should be done if the pivot is smaller than 10^-10 in absolute value. use this code to solve this linear system
0 1 4 x1 = 8
2 4 6 x2 = 15
5 6 0 x3 = 5
also solve this system using the backslash operator. your code should give the same answer as backslash.
Solution
let the pivot is x
x < 10-10
x1 = 8/4=2
x2 = 15/12
= 1.33
x3 = 5/11
this is solve by backslash operator
all above are separately solve
for x1,x2,x3
