|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |
Calculates the determinant of a square matrix.
det(matrix)
Press:
- MATRX (83) or 2nd MATRX (83+ or higher) to access the matrix menu
- LEFT to access the MATH submenu
- ENTER to select det(.
TI-83/84/+/SE
1 byte
The det( command calculates the determinant of a square matrix. If its argument is not a square matrix, ERR:INVALID DIM will be thrown.
Advanced Uses
If [A] is an N×N matrix, then the roots of det([A]-X identity(N)) are the eigenvalues of [A].
Formulas
For 2×2 matrices, the determinant is simply
(1)For larger matrices, the determinant can be computed using the Laplace expansion, which allows you to express the determinant of an n×n matrix in terms of the determinants of (n-1)×(n-1) matrices. However, since the Laplace expansion takes $O\left( n! \right)$ operations, the method usually used in calculators is Gaussian elimination, which only needs $O\left( n^3 \right)$ operations.
The matrix is first decomposed into a unit lower-triangular matrix and an upper-triangular matrix using elementary row operations:
(2)The determinant is then calculated as the product of the diagonal elements of the upper-triangular matrix.
Error Conditions
- ERR:INVALID DIM is thrown when the matrix is not square.
Related Commands
.