3x3 Matrix

Pls help me,i've been trying to write a cpp program that solves a 3x3 matrix problem,but ALL i kept writing is a 3x3gibberish.Any help would be appreciated
Hi, you will need to post a little bit more. What is a 3x3 matrix problem and what did you manage to write?
The program is to calculate the determinant of a 3x3 matrix.The program would be to accept all values of the Matrix from the user itself.
Now show what code you tried. 3x3 matrix determinant has a simple formula. Is itthe input that gives you problems?
No,its not the input, i can handle that. How do i manipulate the calculation?
There is a formula for the determinant of 3x3 matrix. See http://en.wikipedia.org/wiki/Determinant#3-by-3_matrices
If you need to make this work for NxN matrix, you can either use Gaussian elimination or Laplace expansion. I suggest the former. There is pseudo code in wikipedia.
Topic archived. No new replies allowed.