Status
Not open for further replies.

salils

Journeyman
plz tell me how to find out determinant of a matrix using C,
also is there any forum related to C where I can ask any problem of C
 

morpheusv6

Journeyman
For a 3x3 matrix you can use the mathmatical formaula directly.
|A|=a1*(b2*c3-b3*c2)-a2*(b1*c3-b3*c1)+a3*(b1*c2-b2*c1)
where the matrix is:

a1 a2 a3
A= b1 b2 b3
c1 c2 c3

I will try to work out the formula for larger matrices(it probably involves recursion). Try searching the net in the meantime.

Good Luck.
 

Saket Parekh

Broken In
there is no direct formula or function in C to find determinent............ u can find determinat value by using for loop and cofactor of the 1st row elements.
 
Status
Not open for further replies.
Top Bottom