Message Boards Message Boards

0
|
5835 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

How on Mathematica would you determine if matrix has an inverse?

Anonymous User
Anonymous User
Posted 10 years ago

Here is the matrix

a={{1,7,5,0},{5,8,6,9},{2,1,6,4},{8,1,2,4}}
POSTED BY: Anonymous User
2 Replies

Could check that #rows==#cols==rank.

 a = {{1, 7, 5, 0}, {5, 8, 6, 9}, {2, 1, 6, 4}, {8, 1, 2, 4}};
MatrixQ[a] &&
 MatrixRank[a] == Length[a] == Length[a[[1]]]

(* Out[210]= True *)
POSTED BY: Daniel Lichtblau

A matrix is invertible if and only if its determinant is non-equal zero. Therefore,

Det[a]

will give you the result. If you want a language output:

If[Det[a] != 0, "The matrix is invertible.", "The matrix is not invertible."]

Of course you can also just calculate the Inverse.

Inverse[a]

If there is no inverse Mathematica will tell you that the matrix is singular.

Best wishes,

Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract