Question: x 1 - 5 x 2 = 5 3 x 1 - x 2 + 4 x 3 = - 1 1 x 1 +
Solve in computer Use a programming language python or R to solve for question in computer as follows. Make sure you have pracma library in R and numpy, scipy and sympy libraries in Python.
a Define the coefficient matrix and righthandside vector in your code for the problem
b Form the augmented matrix Use append in python, cbind in R
c Apply rref reduced row echelon form function to the augmented matrix to apply GaussJordan elimination. Now you have the solution as the last column of the processed augmented matrix.
d Use function to identify and matrices necessary for decomposition based solution. Solve and equations by applying rref function twice Gauss Jordan elimination
e Use matrixinverse based solution to solve for the unknowns. But, do not use inv function, instead, use rref to get the inverse of A matrix.
f Calculate determinant and rank of the coefficient matrices. What do they tell you? Hint: you can use rank and det functions in R det and matrixrank functions in numpy
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
