# C

Discussion in 'QnA (read only)' started by salils, Feb 18, 2007.

Tags:
Not open for further replies.
1. ### salilsNew Member

Joined:
Apr 26, 2004
Messages:
142
1
Trophy Points:
0
Location:
in the game
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

2. ### morpheusv6New Member

Joined:
Dec 22, 2006
Messages:
215
5
Trophy Points:
0
Location:
Bangalore
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.

3. ### Saket ParekhNew Member

Joined:
Feb 4, 2006
Messages:
33
0
Trophy Points:
0
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.

Joined:
Aug 28, 2005
Messages:
9,747
20
Trophy Points:
0

Joined:
May 5, 2006
Messages:
1,455