471,084 Members | 828 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,084 software developers and data experts.

i need help in finding out determinant of matrix

6
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 10352
D_C
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
Banfa
9,065 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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.