Question: In C++ write the result of doing a complete step of a Gaussian elimination problem. To do this, you must read in the dimension of
In C++ write the result of doing a complete step of a Gaussian elimination problem. To do this, you must read in the dimension of a square matrix. The matrix will be 10X10 or smaller and will contain floats. Then read in the matrix. Then using the element location 1,1 of the matrix (note I am using the mathematics convention of starting numbering at 1), you will change row 1 and also eliminate the other elements in column 0 using Gaussian elimination as discussed in class. This, of course, will change the other rows as well. A sample run follows: Input the number of rows: 3 Input the matrix:
2 5 4 4 12 7 -3 -4.5 2
The matrix after one complete step of Gaussian elimination is:
1 2.5 2 0 2 -1 0 3 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
