Determinate of a Matrix of any (square) order

  • Thread starter Thread starter sciwizeh
  • Start date Start date
  • Tags Tags
    Matrix Square
AI Thread Summary
The discussion revolves around finding an efficient algorithm to calculate the determinant of an nXn matrix for a programming project. The user is familiar with algorithms for 2x2 and 3x3 matrices but seeks a more general solution. They mention the method of transforming the matrix into an upper triangular form and multiplying the diagonal elements, which is valid for triangular matrices. The user expresses some confusion regarding the Wikipedia article on determinants but concludes that implementing Gaussian elimination should simplify the process. Overall, the focus is on developing a program that can handle larger matrices effectively.
sciwizeh
Messages
25
Reaction score
0
Hello, I'm new to this site.

I am trying to write a program that will deal with matrices, my problem is in finding a determinate, it would be easy if I limit the usage to 2x2 and 3x3, for which I already know the algorithms. I think that limiting the usage in that way would limit the usefulness of the program. Is there an "easy to program" algorithm for an nXn matrix? I saw something about getting it to upper triangle and multiplying the diagonal numbers together does this work for all matrices?
 
Mathematics news on Phys.org
I believe so: http://en.wikipedia.org/wiki/Determinant, you can find this quote:

If A is a triangular matrix, i.e. A_{i,j} = 0 \, whenever i > j or, alternatively, whenever i < j, then \det(A) = A_{1,1} A_{2,2} \cdots A_{n,n} (the product of the diagonal entries of A).

But maybe you'll enjoy this paper http://www.axler.net/DwD.pdf :)
 
Thanks. That wikipedia article was kind of confusing, at least for me. OK that means I just need to make the program do Gaussian Elimination, which shouldn't be too hard, I hope.
 
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top