—————————————————————————

Student Name : Sachid Deshmukh

—————————————————————————

C23 Doing the computations by hand, find the determinant of the matrix below.

 mat = matrix(c (1,3,2,4,1,3,1,0,1), ncol=3 , nrow=3, byrow=T)
 print(mat)
##      [,1] [,2] [,3]
## [1,]    1    3    2
## [2,]    4    1    3
## [3,]    1    0    1

Determinant of the above matrix can be calculated as below

  • 1(1X1 - 3X0) - 3(4X1 - 3X1) + 2(4X0 -1X1)
  • 1(1) - 3(1) + 2(-1)
  • 1 - 3 - 2
  • -4

Verify using R

r print(det(mat))

## [1] -4