Why does MATLAB do this?
2 次查看(过去 30 天)
显示 更早的评论
I have my A matrix as-
A = [5 -3 7;1 0 -6;-4 8 9];
I want to show that
transpose(inv(A)) = inv(transpose(A))
but when i do,
transpose(inv(A)) == inv(transpose(A))
it shows as not equal, even though i know for a fact that it definitely is. Please help.
0 个评论
采纳的回答
David Hill
2020-5-27
floating point error
isequal(round(transpose(inv(A)),15),round(inv(transpose(A)),15));
3 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!