MatDet FUNCTION
MatDetI%
MatDetL%
MatDetS%
MatDetD%
MatDetC%
Syntax
errcode% = MatDettype%(matrix ( ), determinant)
Remarks
The MatDettype% procedure finds the determinant of a square matrix; that is,
a matrix that has the same number of rows and columns (n x n). The input
matrix contains values whose data type is defined by the last letter in the
procedure name (I, L, S, D, or C). The resulting determinant, of the same
data type as the input matrix values, is placed in determinant. After the
procedure is performed, the contents of matrix( ) are meaningless.
MatDettype% uses the following arguments.
matrix ( )
----------
A matrix consisting of n x n dimensions.
determinant
-----------
The determinant for matrix ( ).
A result code indicates the success or failure of the FUNCTION procedure.
Possibilities are.
0 Normal completion. No error occurred.
- 2 Matrix not square. The matrix does not have the same number of rows as
columns.