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.

采纳的回答

David Hill
David Hill 2020-5-27
floating point error
isequal(round(transpose(inv(A)),15),round(inv(transpose(A)),15));
  3 个评论
David Hill
David Hill 2020-5-27
rounds to the fifteenth decial place
Robin Morgan
Robin Morgan 2020-5-27
Ok got it, Thank you so much David!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by