468,513 Members | 1,759 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

i need help in finding out determinant of matrix

i want a c program to find the determinant of matrix and inverse of matrix as two separate c programs .
please help me
Sep 3 '06 #1
2 10227
293 100+
The determinant can be calculated recursively, and the inverse can be calculated from the determinant. Hopefully the matrix in question will have integer entries, as floating point entries may have rounding inaccuracies.

See Wikipedia for both the determinant and inverse of a matrix. Both pages have examples.
Sep 3 '06 #2
9,056 Expert Mod 8TB
The inverse of a (square matrix) is relatively easy to find.

Start with your matrix and an identity matrix of the same size.
Use matrix line operations (multiplication/addition of lines to other lines) to convert your matrix to the identity matrix.
Every operation you perform on your matrix also perform on the identity matrix.

Once you have transformed your matrix to the identity matrix the identity matrix will have been transformed to the inverse of your matrix.
Sep 4 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by greenflame | last post: by
1 post views Thread by naren | last post: by
14 posts views Thread by James Stroud | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.