Two matrices
A <- matrix(1:100, nrow=10)
B <- matrix(1:1000, nrow=10)
A <- matrix(1:100, nrow=10)
B <- matrix(1:1000, nrow=10)
Determinants and Inverses
For matrix A: det(A)
det(A)
## [1] 0
The determinant for A is 0 which means that A has no inverse.
For matrix B: det(B)
or solve(B)
#det(B)
#solve(B)
Errors out with either:
- Error in determinant.matrix(x, logarithm = TRUE, …) : ‘x’ must be a square matrix
- Error in solve.default(B) : ‘a’ (10 x 100) must be square
GitHub
Related file(s) can be found at Git Me
No comments:
Post a Comment