Different method of calculation the same thing give different values?
Show older comments
Dear reader,
I have a question regarding the 'exact' value:
Say we have
A = [3 2 ; 1 4];
And for this we'd want to calculate the inverse. This could be done through:
B = A^-1
or manually:
C = 1/(3*4-2*1) * [4 -2 ; -1 3]
Now these answers should be the same, but if one would calculate the difference, this gives:
B-C
Which is not equal to zero. Yes it is almost zero, but because it is not exactly zero, this causes problems down the line.
So which one is (more) correct ? And what causes this issue?
Kind regards,
Ariwan
Accepted Answer
More Answers (0)
Categories
Find more on Time Series Events in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!