Calculate the determinant of the matrix

detmatrix(m)

Arguments

m

a matrix

Value

the determinant

Details

detmatrix calculates the determinant of the matrix given.

See also

Examples

A <- matrix(c(1, 2, -7, -1, -1, 1, 2, 1, 5), 3)
detmatrix(A)
#> [1] 1