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 solve below s...
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
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