You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can use the Laplace expansion to calculate the determinant of the matrix, whereby we multiply each factor in the top row by its cofactor and determinant, then sum the result. This means, to calculate the determinant of a 4x4 matrix, we need to calculate the 3x3 minor determinant of each element in the top row, and each of these minors requires their respective 2x2 minors to be calculated. The mathematical formulae are shown below.
where you would then calculate the determinant of each of the 3x3 minor matrices for each factor ($a_{11}$, $a_{12}$,
$a_{13}$ and $a_{14}$).
The Task
Calculate $I_1$, $I_2$, $I_3$ and $I_4$ for each row of values of $V_1$, $V_2$, $V_3$, $R_1$, $R_2$, $R_3$, and $R_4$
in the provided CSV file using mesh analysis. Store each result in another csv file so these values can be checked.
The task can be broken down as follows:
Read a row from the CSV file and store it as an array
Calculate the contents of the mesh resistance matrix ($[R]$) based on each row and store the result in a 2D array
Solve the matrix for $I_1$, $I_2$, $I_3$ and $I_4$ using Cramer's Rule and laplace expansion