Module # 5 Doing Math
Module # 5 Doing Math
Find the value of inverse of a matrix, determinant of a matrix by using the following values:
A=matrix(1:100, nrow=10)
B=matrix(1:1000, nrow=10)
Post your result and procedure you took on your blog.
A good start will be:
>A <- matrix(1:100, nrow=10)
>B <- matrix(1:1000, nrow=10)
This is the result of the A matrix.
This is the result of the B matrix.
As you can see from this image, the determinant is 0. If a determinant is non-zero, the matrix has an inverse.
A is a square matrix. It has 10 rows and 10 columns. However if you carefully examine matrix A, you can see a pattern. Starting from row 1 column 1, the value is 1. If you look at row 1 column 2, the value is 11. That is an increase of 10. If you look down the row, each value is an increment of 10. If you continue to observe the matrix, it continues this pattern. Each row increases by one. There is linear dependence in this matrix resulting in determinant that is zero. This means there is no inverse to Matrix A.
or
https://github.com/AlenjaksAbraham/LIS4370.git
To see the code look under Module 5.R.
Comments
Post a Comment