MAT
matrix-name [(rows, columns)] = INV (matrix-name)
126
MAT ASSIGNMENT (INVERSE FUNCTION)
This statement allows you
to
assign
the
mathematical matrix inverse
of
one
matrix
to
another
matrix. The syntax
of
the
statement
is
as
shown:
MAT matrix-name [(rows, columns)]
= INV (matrix-name)
where:
all parameters are
the
same
as
those for
other
MAT
assignment statements, and
IN\I'$pecifies
the
inverse function.
The matrix inverse
of
the
matrix specified
to
the
right
of
the
equal sign
is
assigned
to
the
matrix specified
to
the
left
ofthe
equal sign. For
the
square matrix A
of
dimensions (m,m),
the
inverse matrix
B,
if
it
exists,
is
a matrix
of
identical dimen-
sions such
that:
A*B = B*A = I
where I
is
an identity matrix.
Not every matrix has an inverse. The system function DET (see
System Functions)
can be used
to
determine if a given matrix has an inverse. The inverse
of
matrix A
exists if DET(A)
'*
O.
If
redimension specifications follow
the
matrix name
to
the
left
of
the
equal sign,
the
truncated integer portion
of
each expression value
in
rows, columns
is
used
to
redimension
the
matrix before values.are assigned
to
it.
Notes
About
MAT
(Inverse Function)
• Both matrices specified must be numeric.
• Both matrices specified must
be
square, and both must have identical dimensions
(after redimensioning,
if
any).
• The determinant
is
considered zero if
the
result
is
1
E-20
or
less.
•
If
redimension specifications are included,
the
rules under Redimensioning Arrays,
Chapter 3, must be followed.