0
   

How to find determinant of a 3 by 3 Matrix using a C program?

 
 
Tue 19 Nov, 2013 08:01 am
What is the algorithm to find determinant using a C program and what is the time complexity of this algorithm.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 942 • Replies: 3
Topic Closed
No top replies

 
tomr
 
  0  
Tue 19 Nov, 2013 09:14 pm
@Kathleenortan,
double i, j, k;
double l,m, n;
double p, q, r;
double detValue;

'Enter all variables...

detValue = i*(m*r - n*q) - j*(l*r - n*q) + k*(l*q - m*p);

'Output detValue...
raprap
 
  2  
Thu 21 Nov, 2013 07:40 am
@tomr,
correction

detValue = i*(m*r - n*q) - j*(l*r - n*p) + k*(l*q - m*p);

Rap
tomr
 
  1  
Thu 21 Nov, 2013 02:48 pm
@raprap,
I stand corrected.
0 Replies
 
 

 
  1. Forums
  2. » How to find determinant of a 3 by 3 Matrix using a C program?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.02 seconds on 04/26/2024 at 05:35:57