Question: Please use Visual Basic or C++ Assignment 07 1. Find the inverse for the following matrices. 3 13 [C] 1 2 7 2 0 4

 Please use Visual Basic or C++ Assignment 07 1. Find the

Please use Visual Basic or C++

Assignment 07 1. Find the inverse for the following matrices. 3 13 [C] 1 2 7 2 0 4 4 0 6 2. Write a program to calculate the inverse of an n x n matrix. The input file is a comma separated file of numbers. Write the program in the following phases. Ensure each phase runs correctly before you proceed to the next phase. a. Write a computer program to open a .csv file, and read the contents of matrix [A]. Create an augmented matrix [B] of n rows and 2n columns and n rows, consisting of the matrix [A] augmented with the identity matrix [I]. (The identity matrix elements are all zero, except the diagonal elements which are all 1. The program should display the matrix [B] on the screen. b. Write a program to do the complete forward elimination for the Gauss Elimination process. You must exchange equations so that the equation with the largest element is the pivot row. Then you must complete the forward elimination by subtracting the pivot equation from the other equations so that the elements in the pivot column above and below the pivot element are all zero. The left side of the matrix should be reduced to all zeros except for the diagonal elements. Display the augmented matrix [B]. c. Write a program to do the complete inverse. You must divide the rows by the pivot elements. The matrix on the left should become the identity matrix, and the matrix on the right is the inverse. Print the invers matrix

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!