Determinants

Use Maple to calculate the determinant of a square matrix A.

First load the "linalg" package of commands for doing linear algebra:

> with( linalg ) :

Warning, new definition for norm
Warning, new definition for trace

Example: Define a matrix A. This one is 4 x 4.

> A := matrix( [ [ 2, 4, –6, 8 ], [ 3, 7, –4, 9 ], [ 0, –7, –39, –3 ], [ –1, –2, 5, 6 ] ] ) ;

[Maple Math]

Calculate its determinant:

> det( A ) ;

[Maple Math]


Dr. K. G. TeBeest
Applied Mathematics
Kettering University