Why does MATLAB do this?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Robin Morgan
el 27 de Mayo de 2020
Comentada: Robin Morgan
el 27 de Mayo de 2020
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 comentarios
Respuesta aceptada
David Hill
el 27 de Mayo de 2020
floating point error
isequal(round(transpose(inv(A)),15),round(inv(transpose(A)),15));
3 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!