Question: using excel only 6. Develop a general VB code to solve any system of three linear equations using Cramer's rule. Use the determinant code developed

6. Develop a general VB code to solve any system of three linear equations using Cramer's rule. Use the determinant code developed in Problem 5 as a subroutine and call this routine to implement the Cramer's rule. To test your code, solve the following set of equations. Ans: 0.9855, 1.4638, 0.913 0 -3 7 1 2 - 1 15 -2 10-0 The following outline provides a straightforward approach to developing your code: Read matrix A Copy it three times to make three matrices A1, A2, A3 Read matrix B Replace first column in A1 with B Replace second column in A2 with B Replace first column in A3 with B Call determinant subroutine 4 times Example Syntax: Sub mydeterminant (Amat() as Single, determinant Value as Single) Use determinants to evaluate x1, x2, x3 in the main code 23:281
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
