Question

3. (50 points) Write a VBA code to implement Cramers rule, then apply your code to solve below system of linear equations: 2

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Step 1: input Augmented matrix and find the determinants of individual matrices by changing columns of constant matrix

checking for existance of solution is =IF(H9=0,"solution does not exist","solution exists")

and fin the X (X1,X2,X3, X4, X5) matrix by dividing determinants of D1, D2, D3, D4 and D5 matrices with D matrix respectively

The solution excel file is attached below

Input Complete augumented matrix
1 4 1 2 2 5
2 1 -2 3 -1 -4
-1 2 -2 1 3 -2
-3 1 4 2 -1 3
2 2 1 -3 2 6
1 4 1 2 2
2 1 -2 3 -1 -178
D -1 2 -2 1 3
-3 1 4 2 -1
2 2 1 -3 2
5 4 1 2 2
-4 1 -2 3 -1
D1 -2 2 -2 1 3 -356
3 1 4 2 -1
6 2 1 -3 2
1 5 1 2 2
2 -4 -2 3 -1
D2 -1 -2 -2 1 3 356
-3 3 4 2 -1
2 6 1 -3 2
1 4 5 2 2
2 1 -4 3 -1
D3 -1 2 -2 1 3 -534
-3 1 3 2 -1
2 2 6 -3 2
1 4 1 5 2
2 1 -2 -4 -1
D4 -1 2 -2 -2 3 -178
-3 1 4 3 -1
2 2 1 6 2
1 4 1 2 5
2 1 -2 3 -4
D5 -1 2 -2 1 -2 -534
-3 1 4 2 3
2 2 1 -3 6
0
X1= 2
X2= -2
X3= 3
X4= 3
X5= 3
Add a comment
Know the answer?
Add Answer to:
3. (50 points) Write a VBA code to implement Cramer's rule, then apply your code to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 3. (50 points) Write a VBA code to implement Cramer's rule, then apply your code to solve below s...

    3. (50 points) Write a VBA code to implement Cramer's rule, then apply your code to solve below system of linear equations: 2 1 -2 3 -12-4 -1 2 -2 1 3X3-2 -3 1 4 2 -1 24 3 Specific requirements: 1) Input the coefficient matrix and constant vector in spreadsheet, then select and read them from spreadsheet; 2) Check solution existence, if solution not exits, please prompt a message "Solution not exits!" then stop the calculation; 3) Return result...

  • Use a software program or a graphing utility with matrix capabilities and Cramer's Rule to solve...

    Use a software program or a graphing utility with matrix capabilities and Cramer's Rule to solve (if possible) the system of linear equations. (If not possible, enter IMPOSSIBLE.) 3x1 - 2x2 + 9x3 + 4x4 = 27 -X1 - 9x3 – 6X4 = -9 3x3 + X4 = 7 2X1 + 2x2 + 8x4 = -36 (x1, x2, x3, x4) = Use Cramer's Rule to solve the system of linear equations for x and y. kx + (1 - k)y...

  • Cramer's Rule: 5. Use Cramer's Rule to find x,y and z for the following system of...

    Cramer's Rule: 5. Use Cramer's Rule to find x,y and z for the following system of equations. X 2 7x + 2y - z= -1 ។ 6x + 5y + z = 16 -5x - 4y + 3z = -5 2 : 2 a. Write the coefficient matrix first for the system above. Call it matrix D. 7 2 5 L-8-4 3 1 14 ] = 0 b. Find the determinant of the coefficient matrix (det(D)).

  • 4. (10 pts) Using the Gauss-Jordan elimination process, solve the following systems of linear equations. How many solutions are there? Can we apply Cramer's rule? Explain why (Use the matrix...

    4. (10 pts) Using the Gauss-Jordan elimination process, solve the following systems of linear equations. How many solutions are there? Can we apply Cramer's rule? Explain why (Use the matrix form of linear equations.) 4. (10 pts) Using the Gauss-Jordan elimination process, solve the following systems of linear equations. How many solutions are there? Can we apply Cramer's rule? Explain why (Use the matrix form of linear equations.)

  • Need Help on Matlab matrix system. Have your code return the solution x and show this...

    Need Help on Matlab matrix system. Have your code return the solution x and show this solution in a command prompt printout. Note that you can, of course, check your answer easily with the Matlab backslash command, A\b. Naive LU Decomposition Now, starting with your functioning Gauss Elimination code, modify it to keep the factors in the same matrix that it is passed. You of course will not modify the b-vector. Have this code return the L and U matrices...

  • Solve the Following 3x3 system of linear equations using Cramer's Rule. Use the expansion by minors...

    Solve the Following 3x3 system of linear equations using Cramer's Rule. Use the expansion by minors method to evaluate the determinants. Find the solution ordered triple and check. Show Work: 3x-2y+z=12 x+3y-2z=-9 2x-4y-3z=-4 [EXPAND ALONG ROW 1] "|" is just me manually making rows to show expansion steps x= |_______| = |________|______|_____|______|_____|= ________=_____= y= |_______| = |________|______|_____|______|_____|= ________=_____= z= |_______| = |________|______|_____|______|_____|= ________=_____= ordered triple: {(__,__)}    Include checks on x,y,z sorry i tried uploading picture of problem but it...

  • VBA CODE!!! For the following problems, paste your VBA code into a word file in the...

    VBA CODE!!! For the following problems, paste your VBA code into a word file in the homework template and submit it to the dropbox link above. Find the roots of y -2x4 + 3x3 -10x2 - 20x -8 between -3 and 0 to a precision of 0.01 1. 2. Find the rots ofy35- 4r4 2x2-10x between -2 and 2 to a precision of 0.1 3. Find the roots of y sin3) between -3 and-1 to a precision of 0.01 4....

  • solve them by clear hand write , thankyou 3. a) (7 pnts) Find all eigenvalues of...

    solve them by clear hand write , thankyou 3. a) (7 pnts) Find all eigenvalues of the matrix A = 3 -5 3 16 -6 4 11 -3 3 b) (7 pnts) Find all eigenvectors of the matrix A = 13 -5 3 16 -6 4 -E c) (6 pnts) What can you say about the solution of the following system of differential equations in relation to the matrix A? Please explain briefly. X1 - 3x2 + 3x3 3x1 -...

  • FINAL (Continued 7. (12% ) Solve, if possible, the following system of linear equations using Cramer's...

    FINAL (Continued 7. (12% ) Solve, if possible, the following system of linear equations using Cramer's Rule 3z1 + -zs 7 +2r+3 3 2,+6 =-4 8. (15% ) Determine the characteristic polynomial, eigenvalues, and the corresponding eigenspaces. -2 Diagonalize (if poesible) the matrix A= Give the similarity transformation. -3 0 2 9 (15% ) Orthogonally diagonalize the symmetric matrix A Give the similarity transformation. FINAL (Continued 7. (12% ) Solve, if possible, the following system of linear equations using Cramer's...

  • Please answer using MATHLAB. I need the code and the answer. Thanks, Use MATLAB or Scilab...

    Please answer using MATHLAB. I need the code and the answer. Thanks, Use MATLAB or Scilab to perform the following matrix operations 1) Find the determinant of ſi 7 -2 31 5 -1 9 13 2 51 31 4 6 18 -4 21 2) Find the inverse (A-2) of ſi 7 -2 3] 5 -1 9 13 2 51 314 6 18 -4 2' 3) Given the following set of linear equations X, + 2 x, – x3 + xy...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT