Oct 14 2022 02:03 PM
Hi!
I have a 7x7-matrix (A) with large numbers.
I used the MINVERT(matrix) formula to find A:s inverse A^(-1).
The problem I got is that the inverse is wrong. When using MMULT(matrix1; matrix2) I'm not getting the unit-matrix, unfortunately.
How come and how can I get the correct inverse?
Oct 14 2022 03:01 PM - edited Oct 14 2022 03:03 PM
SolutionI suspect (since I don't have your sheet nor example numbers of what you have) that the issue is with round-off / resolution issues. Excel is good but doesn't have infinite capacity to represent numbers, especially when you end up with irrational or even simple fractional values. So you have 7x7 matrix with "large numbers" and I suspect the MINVERT matrix has numbers requiring more digits of resolution than is possible with excel. Hence when you try MMULT() the result isn't exactly a unit-matrix. I suspect the diagonal is very close to 1 and the non-diagonals are close to 0 but yeah, there will be some error.
As for how to get the "correct" inverse, you may need a package that can represent fractions. For example if you have 2/3 that will be 0.666666 but at some point it will have to cut it off and round that last digit up to 7. A package like Mathmatica can give you a solution in the form of 2/3 instead of 0.66666...7
May 04 2023 10:49 AM
May 04 2023 12:04 PM
If you get the same problem if det is not zero I recommend using python instead.