3 Functions for Matrices
The determinant of a square matrix can be computed in R by using the function det for instance
-
The transpose of a matrix can be obtained by using t() e.g.
-
The inverse of a square matrix can be obtained by using the function solve
-
Quiz 1: Inverting a matrix
Find the inverse of the matrix
|
|
|
-
(A)
|
|
|
-
(B)
|
|
|
-
(C)
|
|
|
-
(D)
|
|
|
-
(E)
|
|
|
Workshop 1: Determinant of a matrix
Find the determinant of the
matrix of the form:
|
|
|
Workshop 2: Inverse of a matrix
Find the inverse of the matrix
defined in the previous question. Find the (7,8) element of
to 3 decimal places.
Workshop 3: Determinants of large matrix
Consider other matrices of the same general form as .
What size
of
matrix leads to a matrix with determinant 190231?
Workshop 4: Largest determinant of a matrix
What is the largest possible determinant that a symmetric
matrix, all of whose entries lie
in the set of integers
can have? Use R to determine the answer.